26 #if GEOM_PSEUDO3D==GEOM_TRUE
27 namespace GEOM_FADE25D {
28 #elif GEOM_PSEUDO3D==GEOM_FALSE
29 namespace GEOM_FADE2D {
31 #error GEOM_PSEUDO3D is not defined
134 pSavedTr=other.pSavedTr;
156 int ccwIdx=incBy1(pTr->getIntraTriangleIndex(pPnt));
158 std::swap(pSavedTr,pTr);
159 pTr=pSavedTr->getOppositeTriangle(ccwIdx);
180 int cwIdx=incBy2(pTr->getIntraTriangleIndex(pPnt));
181 std::swap(pSavedTr,pTr);
182 pTr=pSavedTr->getOppositeTriangle(cwIdx);
193 return (pPnt==rhs.pPnt && pTr==rhs.pTr);
203 return (pPnt!=rhs.pPnt || pTr!=rhs.pTr);
252 assert(pTr==NULL && pSavedTr!=NULL);
254 enum DIRECTION{DIRECTION_NONE,DIRECTION_BACK,DIRECTION_FWD};
255 DIRECTION direction(DIRECTION_NONE);
261 direction=DIRECTION_BACK;
265 assert(direction==DIRECTION_NONE);
266 direction=DIRECTION_FWD;
269 if(direction==DIRECTION_FWD)
while(*
operator++()!=NULL);
270 if(direction==DIRECTION_BACK)
while(*
operator--()!=NULL);
Represents a 2D point.
Definition: Point2.h:76
Represents a triangle in a triangulation.
Definition: Triangle2.h:59
Triangle2 * getOppositeTriangle(const int idx) const
Get the neighbor triangle at the specified index.
Definition: Triangle2.h:420
int getIntraTriangleIndex(const Point2 *pCorner) const
Get the index of the specified corner.
Definition: Triangle2.h:451
Iterator for all triangles around a given vertex.
Definition: TriangleAroundVertexIterator.h:83
bool operator!=(const TriangleAroundVertexIterator &rhs)
Compare the current iterator with another iterator.
Definition: TriangleAroundVertexIterator.h:201
bool operator==(const TriangleAroundVertexIterator &rhs)
Compare the current iterator with another iterator.
Definition: TriangleAroundVertexIterator.h:191
Triangle2 * previewNextTriangle()
Preview the next triangle (CCW direction).
Definition: TriangleAroundVertexIterator.h:224
Triangle2 * operator*()
Returns the current triangle (or NULL)
Definition: TriangleAroundVertexIterator.h:211
Triangle2 * previewPrevTriangle()
Preview the previous triangle (CW direction).
Definition: TriangleAroundVertexIterator.h:237
TriangleAroundVertexIterator & operator=(const TriangleAroundVertexIterator &other)
Assignment operator.
Definition: TriangleAroundVertexIterator.h:130
TriangleAroundVertexIterator & operator++()
Move the iterator to the next triangle (counterclockwise order)
Definition: TriangleAroundVertexIterator.h:146
TriangleAroundVertexIterator(const TriangleAroundVertexIterator &it)
Copy constructor.
Definition: TriangleAroundVertexIterator.h:119
TriangleAroundVertexIterator(Point2 *pPnt_, Triangle2 *pTr_)
Constructor.
Definition: TriangleAroundVertexIterator.h:109
TriangleAroundVertexIterator & operator--()
Move the iterator to the previous triangle (clockwise order)
Definition: TriangleAroundVertexIterator.h:173
TriangleAroundVertexIterator(const Point2 *pPnt_)
Constructor.
Definition: TriangleAroundVertexIterator.h:93