31 bool ptAFind =
false, ptBFind =
false;
36 size_t nbPts = contour2.size();
39 for (
size_t i = 0; i < nbPts; i++)
61 nbPts = contour1.size();
64 for (
size_t i = 0; i < nbPts; i++)
85 if (ptBFind && ptBFind)
97 bool ptAFind =
false, ptBFind =
false;
102 size_t nbPts = contour.size();
105 for (
size_t i = 0; i < nbPts; i++)
112 seg.
_ptA = ptIntersec;
118 if (ptIntersec == seg.
_ptA)
122 seg.
_ptB = ptIntersec;
138 assert(
false &&
"OPROTO does not support pure virtual methods");
All base classes related to 3D manipulation.
#define INTERS_OUI
The intersection exists.
#define INTERS_NULLE
No intersection.
std::deque< OPoint3D > TYTabPoint3D
Collection de OPoint3D.
Plan defined by its equation : ax+by+cz+d=0.
int intersectsSegment(const OPoint3D &pt1, const OPoint3D &pt2, OPoint3D &ptIntersec) const
Calculate the intersection of this plane with a segment defined by two points.
Class to define a segment.
OPoint3D _ptA
Point A of the segment.
OPoint3D _ptB
Point B of the segment.
virtual int intersectsPlan(const OPlan &plan, OSegment3D &seg) const
virtual int intersects(const OPoint3D &pt) const =0
virtual TYTabPoint3D getOContour(int n=-1) const =0
virtual OPlan plan() const =0
virtual void exportMesh(std::deque< OPoint3D > &points, std::deque< OTriangle > &triangles, const TYGeometryNode &geonode) const
Exports the surface as a triangular mesh inglobal reference frame.