CGAL 4.6.1 - Halfedge Data Structures
|
#include <CGAL/HalfedgeDS_items_2.h>
The class HalfedgeDS_items_2
is a model of the HalfedgeDSItems
concept.
It uses the default types for vertices, halfedges, and faces that declare all incidences supported by a HalfedgeDS
. The vertex also contains a point of type Traits::Point_2
, where Traits
is the template argument of the corresponding HalfedgeDS
.
CGAL::HalfedgeDS_min_items
CGAL::Polyhedron_items_3
HalfedgeDS<Traits,Items,Alloc>
PolyhedronItems_3
CGAL::HalfedgeDS_vertex_base<Refs>
CGAL::HalfedgeDS_halfedge_base<Refs>
CGAL::HalfedgeDS_face_base<Refs>
Example
The following example shows the canonical implementation of the HalfedgeDS_items_2
class. It uses the base classes for the item types that are provided in the library.
The following example shows a class definition for a new items class derived from the HalfedgeDS_items_2
class. It replaces the Face_wrapper
with a new definition of a face that contains a member variable for color. The new face makes use of the face base class provided in the library.