At the base level, a cell stores void* pointers to its four vertices and to its four neighbor cells. The vertices and neighbors are indexed 0, 1, 2 and 3. Neighbor lies opposite to vertex .
| |||
| |||
Initializes the vertices with v0, v1, v2, v3. Neighbors are
initialized to NULL.
| |||
| |||
Initializes the vertices with v0, v1, v2, v3 and the neighbors with
n0, n1, n2, n3.
|
|
|
Returns the vertex i of c. Precondition: . |
|
| |
Returns the index of v. Precondition: v is a vertex of c | ||
|
| |
True iff v is a vertex of c. | ||
|
| |
Returns true if v is a vertex of c, and computes its index i in c. | ||
|
| |
Returns the neighbor i of c. Precondition: . | ||
|
| |
Returns the index of cell n in c. Precondition: n is a neighbor of c. | ||
|
| |
Returns true if n is a neighbor of c. | ||
|
| |
Returns true if n is a neighbor of c, and computes its index i in c. |
|
| |||
Sets vertex i to v. Precondition: . | ||||
|
| Sets the vertices to NULL. | ||
|
| |||
Sets the vertices. | ||||
|
| |||
Sets neighbor i to n. Precondition: . | ||||
|
| Sets the neighbors to NULL. | ||
|
| |||
Sets the neighbors. |
|
| |
Performs any desired geometric test on a cell. When verbose is set to true, messages are printed to give a precise indication of the kind of invalidity encountered. |