|
| Triangle2 () |
| Constructor.
|
|
void | clearProperties () |
| Clear all corners and neighbor pointers.
|
|
double | getArea2D () const |
| Get 2D Area. More...
|
|
Point2 | getBarycenter () const |
| Get the barycenter of a triangle. More...
|
|
Point2 | getCircumcenter (CircumcenterQuality &ccq, bool bForceExact=false) const |
| Get the circumcenter of the triangle. More...
|
|
void | getCorners (Point2 *&p0, Point2 *&p1, Point2 *&p2) const |
| Get the 3 triangle corners.
|
|
std::pair< Point2, bool > | getDual (bool bForceExact=false) const |
|
double | getInteriorAngle2D (int ith) const |
| Get interior 2D angle. More...
|
|
int | getIntraTriangleIndex (const Point2 *p) const |
| Get the index of p in the triangle. More...
|
|
int | getIntraTriangleIndex (const Point2 *p0, const Point2 *p1) const |
| Get the index of (p0,p1) More...
|
|
int | getIntraTriangleIndex (const Triangle2 *pTriangle) const |
| Get the neighbor index of pTriangle. More...
|
|
int | getMaxIndex () const |
| Get the index of the largest edge.
|
|
double | getMaxSqEdgeLen2D () const |
| Get the maximum squared 2D edge length.
|
|
int | getMinIndex () const |
| Get the index of the smallest edge.
|
|
Triangle2 * | getOppositeTriangle (const int ith) const |
| Get the i-th neighbor triangle. More...
|
|
double | getSquaredEdgeLength2D (int ith) const |
| ** More...
|
|
bool | hasOnEdge (int i, const Point2 &q) const |
| Has point on edge. More...
|
|
bool | hasVertex (const Point2 &vtx) const |
| Has vertex. More...
|
|
bool | hasVertex (const Point2 *pVtx) const |
| Has vertex. More...
|
|
void | setOppTriangle (const int ith, Triangle2 *pTriangle) |
| Set the i-th neighbor triangle. More...
|
|
void | setProperties (Point2 *pI, Point2 *pJ, Point2 *pK) |
| Set all corners.
|
|
void | setPropertiesAndOppT (Point2 *pI, Point2 *pJ, Point2 *pK, Triangle2 *pNeig0, Triangle2 *pNeig1, Triangle2 *pNeig2) |
| Set all corners and neighbor triangles.
|
|
void | setVertexPointer (const int ith, Point2 *pp) |
| Set the i-th corner.
|
|
Triangle2 is a triangle in the Fade_2D triangulation. It holds three Point2 pointers to its corners. The corners are numbered in counterclockwise order. We refer to these indices as intra-triangle-indices.
Each triangle has three neighbors which can be accessed through intra-triangle-indices: The i-th neighbor triangle of a certain triangle T is the one which shares an edge with T such that this edge does not include the i-th corner of T.
Indices and neighborships, tb is the 0-th neighbor of ta and ta is the 2nd neighbor of tb.
- See also
- TriangleAroundVertexIterator to find out how to access all triangles incident to a certain vertex.