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.
| |||
introduces a face f and initializes all vertices and neighbors
with NULL.
| |||
| |||
introduces a face f, and initializes the vertices. The
neighbors are initialized with NULL.
| |||
| |||
introduces a face f, and initializes the vertices and the neighbors.
|
|
| |
sets vertex i to be v. Precondition: . | ||
|
| |
sets neighbor i to be n. Precondition: . | ||
|
| sets the vertices pointers to NULL. |
|
| |
sets the vertices pointers. | ||
|
| sets the neighbors pointers to NULL. |
|
| |
sets 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 v in f. |
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 n. |
|
| |
index of f as a neighbor of f.neighbor(i) | ||
|
| |
vertex of f.neighbor(i) |
|
| returns true if the function is_valid() of the base class returns true and if, for each index , , face is a neighbor of its neighboring face neighbor(i) and shares with this neighbor the vertices cw(i) and ccw(i) in correct reverse order. |
|
|
Returns modulo 3. Precondition: . |
|
|
Returns modulo 3. Precondition: . |