Figure depicts the relationship between a halfedge and its incident halfedges, vertices, and facets. A halfedge is an oriented edge between two vertices. It is always paired with a halfedge pointing in the opposite direction. The opposite() member function returns this halfedge of opposite orientation. If a halfedge is incident to a facet the next() member function points to the successor halfedge around this facet. For border edges the next() member function points to the successor halfedge along the hole. For more than two border edges at a vertex, the next halfedge along a hole is not uniquely defined, but a consistent assignment of the next halfedge will be maintained in the data structure. An invariant is that successive assignments of the form h = h->next() cycle counterclockwise around the facet (or hole) and traverse all halfedges incident to this facet (or hole). A similar invariant is that successive assignments of the form h = h->next()->opposite() cycle clockwise around the vertex and traverse all halfedges incident to this vertex. Two circulators are provided for these circular orders.
The incidences encoded in opposite() and next() are available for each instantiation of polyhedral surfaces. The other incidences are optionally available as indicated with type tags. The prev() member function points to the preceding halfedge around the same facet. It is always available, though it might perform a search around the facet using the next() member function to find the previous halfedge if the underlying halfedge data structure does not provide an efficient prev() member function for halfedges. Handles to the incident vertex and facet are optionally stored.
The circulators are assignable to the Halfedge_handle. The circulators are bidirectional if the halfedge provided to the polyhedron with the Items template argument provides a member function prev(), otherwise they are of the forward category.
#include <CGAL/Polyhedron_3.h>
| |
type of incident vertices.
| |
| |
type of incident facets.
| |
| |
handle to vertex.
| |
| |
handle to halfedge.
| |
| |
handle to facet.
| |
| |
circulator of
halfedges around a vertex.
| |
| |
circulator of
halfedges around a facet.
| |
| |
| |
| |
| |
| |
| |
CGAL::Tag_true or
CGAL::Tag_false.
| |
| |
CGAL::Tag_true or
CGAL::Tag_false.
| |
| |
CGAL::Tag_true or
CGAL::Tag_false.
|
| |
default constructor.
|
|
|
|
| ||
| ||
the opposite halfedge. | ||
|
|
|
| ||
| the next halfedge around the facet. | |
|
|
|
| ||
| the previous halfedge around the facet. | |
|
| |
| ||
| ||
the next halfedge around the vertex (clockwise). Is equal to h.next()->opposite(). | ||
|
| |
| ||
| ||
the previous halfedge around the vertex (counterclockwise). Is equal to h.opposite()->prev(). | ||
|
| |
is true if h is a border halfedge. | ||
|
| |
is true if h or h.opposite() is a border halfedge. | ||
| ||
|
||
| ||
| ||
circulator of halfedges around the vertex (clockwise). | ||
| ||
|
||
| ||
| ||
circulator of halfedges around the facet (counterclockwise). | ||
|
| |
the degree of the incident vertex, i.e., number of edges emanating from this vertex. | ||
|
| |
returns true if the incident vertex has exactly two incident edges. | ||
|
| |
returns true if the incident vertex has exactly three incident edges. | ||
|
| |
the degree of the incident facet, i.e., number of edges on the boundary of this facet. | ||
|
| |
returns true if the incident facet is a triangle. | ||
|
| returns true if the incident facet is a quadrilateral. |
|
|
|
| ||
| the incident vertex of h. |
|
|
|
|
| the incident facet of h. If h is a border halfedge the result is default construction of the handle. |
CGAL::Polyhedron_3<Traits>::Vertex
CGAL::Polyhedron_3<Traits>::Facet
CGAL::Polyhedron_3<Traits>
The member functions prev() and prev_on_vertex() work in constant time if Supports_halfedge_prev CGAL::Tag_true. Otherwise both methods search for the previous halfedge around the incident facet.