Planar Face Visitor Concept
This concept defines the visitor interface for
planar_face_traversal.
Users can define a class with the Planar Face Visitor interface and pass
an object of the class to planar_face_traversal, thereby
augmenting the actions taken during the traversal. Note that objects
passed to planar_face_traversal are passed by reference.
Notation
V |
A type that is a model of Planar Face Visitor. |
|---|---|
|
An object of type |
|
A type that is a model of Graph. |
|
An object of type
|
|
An object of type
|
Valid Expressions
| Name | Expression | Return Type | Description |
|---|---|---|---|
Begin Traversal |
|
|
This is invoked once per traversal, before the traversal begins. |
Begin Face |
|
|
This is invoked once for each face, before any vertices or edges on the face are visited. |
Next Vertex |
|
|
This is invoked when a vertex is encountered while traversing a face. |
Next Edge |
|
|
This is invoked when an edge is encountered while traversing a face. |
End Face |
|
|
This is invoked once for each face, after all vertices and edges on the face are visited. |
End Traversal |
|
|
This is invoked once per traversal, after the traversal ends. |
Models
-
The file
planar_face_traversal.hppcontains a classplanar_face_traversal_visitorthat implements empty actions for all event points of a Planar Face Visitor. In the case where only a few of the event points of Planar Face Visitor need to be implemented, one can derive fromplanar_face_traversal_visitorand only implement the necessary event points. -
The implementation of
make_maximal_planaruses atriangulation_visitorthat is a model of Planar Face Visitor.