20 #ifndef __TY_POLYGON__
21 #define __TY_POLYGON__
71 virtual bool deepCopy(
const TYElement* pOther,
bool copyId =
true,
bool pUseCopyTag =
false);
73 virtual std::string
toString()
const;
227 void exportMesh(std::deque<OPoint3D>& points, std::deque<OTriangle>& triangles,
std::vector< TYPoint > TYTabPoint
Collection de TYPoint.
std::deque< OPoint3D > TYTabPoint3D
Collection de OPoint3D.
#define TY_EXT_GRAPHIC_DECL_ONLY(classname)
#define OPROTODECL(classname)
#define TY_EXTENSION_DECL_ONLY(classname)
virtual bool isInside2D(const OPoint3D &pt) const
Test whether the point is inside the box or not (from upper point of view).
virtual bool isInside(const OPoint3D &pt) const
Test whether the point is inside the box or not.
OPoint3D _min
Minimal coordinates of the OBox.
OPoint3D _max
Maximal coordinates of the OBox.
double _y
y coordinate of OCoord3D
double _z
z coordinate of OCoord3D
double _x
x coordinate of OCoord3D
Plan defined by its equation : ax+by+cz+d=0.
3D frame with a point and 3 vectors.
Class to define a segment.
virtual void setIsGeometryModified(bool isModified)
const TYTabPoint & getPoints() const
void setConvex(bool bConvex)
TYRectangle getBoundingRect() const
void exportMesh(std::deque< OPoint3D > &points, std::deque< OTriangle > &triangles, const TYGeometryNode &geonode) const
Export the surface as a triangular mesh.
bool isInBox(const OPoint3D &pt) const
virtual void inverseNormale()
bool operator!=(const TYPolygon &other) const
Operateur !=.
virtual OVector3D normal() const
bool checkCoplanar() const
ORepere3D getORepere3D() const
OPoint3D getPoint(size_t index) const
int isInpolyYZ(const TYTabPoint &poly, int npoints, double xt, double yt) const
virtual bool deepCopy(const TYElement *pOther, bool copyId=true, bool pUseCopyTag=false)
int isInpolyXY(const TYTabPoint &poly, int npoints, double xt, double yt) const
virtual int intersects(const TYSurfaceInterface *pSurf, OSegment3D &seg) const
void transform(const OMatrix &matrix)
virtual TYTabPoint3D getOContour(int n=-1) const
virtual const OBox & getBox() const
virtual const OPlan & getPlan() const
OPoint3D getCenter() const
virtual TYTabPoint getContour(int n=-1) const
virtual std::string toString() const
virtual int fromXML(DOM_Element domElement)
virtual DOM_Element toXML(DOM_Element &domElement)
TYPolygon & operator=(const TYPolygon &other)
Operateur =.
void setPoints(const TYTabPoint &pts)
virtual OPlan plan() const
int isInpolyXZ(const TYTabPoint &poly, int npoints, double xt, double yt) const
virtual double surface() const
bool operator==(const TYPolygon &other) const
Operateur ==.
bool isInBox2D(const OPoint3D &pt) const