A vertex record in a Dcel data structure. A vertex is always associated with a point. However, the vertex record only stores a pointer to the associated point, and the actual Point
object is stored elsewhere.
A vertex usually has several halfedges incident to it, such that it is possible to access one of these halfedges directly and to traverse all incident halfedges around the vertex. However, the Dcel may also contain isolated vertices that have no incident halfedges. In this case, the vertex stores an isolated vertex-information record, indicating the face that contains this vertex in its interior.
- See also
ArrangementDcel
-
ArrangementDcelHalfedge
-
ArrangementDcelIsolatedVertex
|
All functions below also have const counterparts, returning non-mutable pointers or references:
|
bool | is_isolated () const |
| returns whether the vertex is isolated (has no incident halfedges).
|
|
Halfedge * | halfedge () |
| returns an incident halfedge that has v as its target. More...
|
|
Isolated_vertex * | isolated_vertex () |
| returns the isolated vertex-information record. More...
|
|
bool | has_null_point () const |
| returns whether the vertex is not associated with a valid point (i.e. it lies at infinity).
|
|
Point & | point () |
| returns the associated point. More...
|
|
Arr_parameter_space | parameter_space_in_x () const |
| returns the placement of the \( x\)-coordinate in the parameter space, that is, either the left boundary-side, the interior, or the right boundary-side.
|
|
Arr_parameter_space | parameter_space_in_y () const |
| returns the placement of the \( y\)-coordinate in the parameter space, that is, either the bottom boundary-side, the interior, or the top boundary-side.
|
|