CFx SDK Documentation
2020SP3
|
Go to the documentation of this file.
24 #ifndef __ODGITESSELATOR_H_INCLUDED__
25 #define __ODGITESSELATOR_H_INCLUDED__
35 #ifndef ODGT_NAMESPACE
36 #define ODGT_NAMESPACE OdGeTess
37 #define ODGT_PTRTYPE OdSmartPtr<Contour>
38 #define ODGT_PARENT : public OdRxObject
127 pCntr2Ins->m_pNextContour = m_pNextContour;
128 return (m_pNextContour = pCntr2Ins);
149 const void*
coords()
const {
return m_pCoords; }
150 bool is2d()
const {
return m_b2d; }
158 bool failed()
const {
return m_bFailed; }
159 double tol()
const {
return m_tol; }
165 friend class Contour;
187 m_pNextVertex = vert2;
194 int index()
const {
return m_nIndex; }
196 unsigned int edgeId()
const {
return m_nEdgeId; }
197 void setEdgeId(
unsigned int nEdgeId) { m_nEdgeId = nEdgeId; }
204 void setContour(Contour* pContour) { m_pContour = pContour; }
208 inline bool Contour::isTriangle()
const
210 return (m_pFirstVertex && m_pFirstVertex->next()->next()==m_pFirstVertex->prev());
213 inline bool Contour::isLineSeg()
const
215 return (m_pFirstVertex && m_pFirstVertex->next()==m_pFirstVertex->prev());
223 #undef ODGT_NAMESPACE
231 #endif // __ODGITESSELATOR_H_INCLUDED__
double calcMaxCoordValue(double &size) const
void concatContours(Vertex *pC1vert, Contour *pContour2, Vertex *pC2vert)
bool intersections(const Vertex *vert1, const Vertex *vert2, Intersections &res, bool bNested) const
ContourPtr contour() const
EdgesType edgesType() const
ContourPtr insert(Contour *pCntr2Ins)
OdArray< Intersection, OdMemoryAllocator< Intersection > > Intersections
bool isInside(const OdGePoint2d &point) const
ContourPtr m_pNextContour
void addVertex(Vertex *vertex)
const OdGePoint2d & point() const
void splitPolygon(Vertex *pV1, Vertex *pV2)
const Vertex * next() const
static bool isIncommingR(const Vertex *v1, const Vertex *v2)
GLfloat GLfloat GLfloat v2
double squareValue() const
bool intersections(const Vertex *pVert1, const OdGePoint2d *pVert2, Intersections &res, bool bNested) const
void breakContour(Vertex *vertex)
const Vertex * prev() const
bool normalize(double size)
void removeEqualVertexes(const OdGeTol &tol)
void setContour(Contour *pContour)
static ContourPtr create(const OdGePoint3d *coords ODGT_HOLDER)
bool intersections_lv(const Vertex *vert1, const LocalVert *vert2, Intersections &res, bool bNested) const
ContourPtr breakToConvex(unsigned int options, double eps=-1.)
const OdGePoint2d & point(int index) const
ContourPtr copy(int bNested) const
unsigned int edgeId() const
void setIndex(int nIndex)
static void split(Vertex *v1, Vertex *v2)
void checkClockwiseOriented(int bNested)
const void * coords() const
void delVertex(Vertex *vertex)
bool splitOnCoincidentPoint(double size)
void removeVertex(Vertex *vertex)
void setEdgeId(unsigned int nEdgeId)
bool isIncommingOrOnEdgeR(const Vertex *pV1, const Vertex *pV2) const
const Vertex * head() const
bool operator<(const Intersection &op) const
static ContourPtr create(const void *coords, bool b2d ODGT_HOLDER)
#define GE_TOOLKIT_EXPORT
ContourPtr lastContour() const
static ContourPtr create(const OdGePoint2d *coords ODGT_HOLDER)
static bool isIncomming(const Vertex *v1, const Vertex *v2)
bool vectorIntersects(const Vertex *v1, const Vertex *v2, bool bNested) const
Vertex * addVertex(int index, unsigned int edgeId=0)
void breakToConvex2(double size)