25 #if GEOM_PSEUDO3D==GEOM_TRUE
26 namespace GEOM_FADE25D {
27 #elif GEOM_PSEUDO3D==GEOM_FALSE
28 namespace GEOM_FADE2D {
30 #error GEOM_PSEUDO3D is not defined
106 pSavedTr=other.pSavedTr;
129 int ccwIdx=incBy1(pTr->getIntraTriangleIndex(pPnt));
131 std::swap(pSavedTr,pTr);
132 pTr=pSavedTr->getOppositeTriangle(ccwIdx);
155 int cwIdx=incBy2(pTr->getIntraTriangleIndex(pPnt));
156 std::swap(pSavedTr,pTr);
157 pTr=pSavedTr->getOppositeTriangle(cwIdx);
169 return (pPnt==rhs.pPnt && pTr==rhs.pTr);
179 return (pPnt!=rhs.pPnt || pTr!=rhs.pTr);
223 assert(pTr==NULL && pSavedTr!=NULL);
225 enum DIRECTION{DIRECTION_NONE,DIRECTION_BACK,DIRECTION_FWD};
226 DIRECTION direction(DIRECTION_NONE);
232 direction=DIRECTION_BACK;
236 assert(direction==DIRECTION_NONE);
237 direction=DIRECTION_FWD;
240 if(direction==DIRECTION_FWD)
while(*
operator++()!=NULL);
241 if(direction==DIRECTION_BACK)
while(*
operator--()!=NULL);
Point.
Definition: Point2.h:53
Triangle.
Definition: Triangle2.h:60
Triangle2 * getOppositeTriangle(const int ith) const
Get the i-th neighbor triangle.
Definition: Triangle2.h:407
int getIntraTriangleIndex(const Point2 *p) const
Get the index of p in the triangle.
Definition: Triangle2.h:439
Iterator for all triangles around a given vertex.
Definition: TriangleAroundVertexIterator.h:65
bool operator!=(const TriangleAroundVertexIterator &rhs)
operator!=()
Definition: TriangleAroundVertexIterator.h:177
bool operator==(const TriangleAroundVertexIterator &rhs)
operator==()
Definition: TriangleAroundVertexIterator.h:167
Triangle2 * previewNextTriangle()
Preview next triangle (CCW direction)
Definition: TriangleAroundVertexIterator.h:196
Triangle2 * operator*()
Returns a pointer to the current triangle (or NULL)
Definition: TriangleAroundVertexIterator.h:186
Triangle2 * previewPrevTriangle()
Preview previous triangle (CW direction)
Definition: TriangleAroundVertexIterator.h:208
TriangleAroundVertexIterator & operator++()
Proceed to the next triangle (the one in counterclockwise order)
Definition: TriangleAroundVertexIterator.h:119
TriangleAroundVertexIterator(const TriangleAroundVertexIterator &it)
Copy constructor.
Definition: TriangleAroundVertexIterator.h:97
TriangleAroundVertexIterator(Point2 *pPnt_, Triangle2 *pTr_)
Constructor.
Definition: TriangleAroundVertexIterator.h:89
TriangleAroundVertexIterator & operator--()
Proceed to the previous triangle (the one in clockwise order)
Definition: TriangleAroundVertexIterator.h:148
TriangleAroundVertexIterator(const Point2 *pPnt_)
Constructor.
Definition: TriangleAroundVertexIterator.h:73