CGAL 4.14 - 3D Polyhedral Surface
|
The PolyhedronItems_3
concept refines the HalfedgeDSItems
concept. In addition to the requirements stated there, a model for this concept must fulfill the following requirements for the local PolyhedronItems_3::Vertex_wrapper<Refs,Traits>::Vertex type and PolyhedronItems_3::Face_wrapper<Refs,Traits>::Face type in order to support the point for vertices and the optional plane equation for facets. Note that the items class uses face instead of facet. Only the polyhedral surface renames faces to facets.
CGAL::Polyhedron_3<Traits>
HalfedgeDSItems
CGAL::HalfedgeDS_items_2
CGAL::HalfedgeDS_vertex_base<Refs>
CGAL::HalfedgeDS_halfedge_base<Refs>
CGAL::HalfedgeDS_face_base<Refs>
Example
We define our own items class based on the available CGAL::HalfedgeDS_face_base
base class for faces. We derive the the Halfedge_wrapper
without further modifications from the CGAL::HalfedgeDS_items_2
, replace the Face_wrapper
definition with our new definition, and also replace the Vertex_wrapper
with a definition that uses Point_3
instead of Point_2
as point type. The result is a model for the PolyhedronItems_3
concept similar to the available CGAL::Polyhedron_items_3
class. See also there for another illustrative example.
Concepts | |
concept | Face |
The PolyhedronItems_3::Face concept refines the HalfedgeDSItems::Face concept. This concept adds the requirement for the support of the geometry. More... | |
concept | Vertex |
The PolyhedronItems_3::Vertex concept refines the HalfedgeDSItems::Vertex concept. This concept adds the requirement for the support of the geometry. More... | |