The face class Tds::Face of a triangulation data structure stores three pointers to its three vertices and three pointers to its three neighbors The vertices are indexed 0,1, and 2 in counterclockwise order. The neighbor indexed lies opposite to vertex i.
For user defined triangulation algorithms, faces need to be explicitly constructed and linked to their neighbors.
| |||
Introduces a variable f and initializes all vertices and
neighbors with NULL.
| |||
| |||
Introduces a variable f, and initializes the vertices. The
neighbors are initialized with NULL.
| |||
| |||
Introduces a variable f, and initializes the vertices and
the neighbors.
|
|
| |
Set vertex i to be v.
Precondition: . | ||
|
| |
Set neighbor i to be n.
Precondition: . | ||
|
| set the vertices pointers to NULL. |
|
| |
set the vertices pointers. | ||
|
| set the neighbors pointers to NULL. |
|
| |
set the neighbors pointers. |
|
|
Returns the vertex i of f.
Precondition: . |
|
| |
Returns the index of vertex v in f.
Precondition: v is a vertex of f | ||
|
| |
Returns true if v is a vertex of f. | ||
|
| |
Returns true if v is a vertex of f, and computes the index i of the vertex. |
The neighbor with index i is the neighbor which is opposite to the vertex with index i.
|
| |
Returns the neighbor i of f.
Precondition: . | ||
|
|
Returns the index of face n.
Precondition: n is a neighbor of f. |
|
| |
Returns true if n is a neighbor of f. | ||
|
| |
Returns true if n is a neighbor of f, and compute the index i of the neighbor. |
|
| Returns true if the base class is_valid() function returns true and if the triangle shares two vertices with its neighbors, and these neighbors have a correct reciprocal neighboring link. |
|
|
Returns modulo
3. Precondition: . |
|
|
Returns modulo
3. Precondition: . |