The vertex stores a point, gives access to an incident face and provides circulators to visit all incident faces and edges and all adjacent vertices.
| |
Introduces a new vertex. The geometric information is initialized by the default constructor of the class Point. The pointer to the incident face is initialized to NULL.
| |
| |
Introduces a variable v, and initializes the geometric information.
The pointer to the incident face is initialized with NULL.
| |
| |
Introduces a variable v, and initializes the geometric information and
the pointer to the incident face.
|
|
| Returns the geometric information of v. |
|
| Returns a face of the triangulation having v as vertex. |
|
| |
Sets the incident face to f. |
|
|
Returns modulo 3. Precondition: . |
|
|
Returns modulo 3. Precondition: . |
|
| Returns the degree of v in the triangulation. |
|
| Returns an handle to the vertex. |
|
| Check the validity of a vertex: i.e. the pointer to the incident face and call the is_valid() function of the base class to perform any geometric test provided by the user therein. |
Three circulator classes allow to traverse the edges, and faces incident to a given vertex or the adjacent vertices. These circulators are bidirectional and their value types are respectively Vertex, Edge and Face. The operator++ moves the circulator counterclockwise around the vertex and the operator-- moves the circulator clockwise.
A face circulator is invalidated by any modification of the face it points to. An edge circulator is invalidated by any modification of one of the two faces that are incident to the edge pointed to. A vertex circulator that turns around vertex v and and points to a vertex w, is invalidated by any modification of the faces incident to the edge vw.
|
| |
A circulator for the incident faces
that refers to face f or to an arbitrary face
incident to v if f is omitted. Precondition: Face f is incident to vertex v. | ||
|
| |
A circulator for the incident edges that refers to an abitrary edge incident
to v if f is omitted. Otherwise the circulator refers
to the first edge of f
incident
to v in counterclockwise order around v. Precondition: Face f is incident to vertex v. | ||
|
| |
A circulator for the adjacent vertices.
If f is omitted, the circulator begins with
an abitrary vertex incident
to v, otherwise it begins with the
vertex of face f that,
in counterclockwise order around v,
is the first vertex of f incident to v. Precondition: Face f is incident to vertex v. |