CGAL::HalfedgeDS_min_items

Definition

The class HalfedgeDS_min_items is a model of the HalfedgeDSItems concept. It defines types for vertices, halfedges, and faces that declare the minimal required incidences for a HalfedgeDS, which are the next() and the opposite() member function for halfedges.

#include <CGAL/HalfedgeDS_min_items.h>

Is Model for the Concept

HalfedgeDSItems

See Also

CGAL::HalfedgeDS_items_2
CGAL::Polyhedron_items_3
HalfedgeDS<Traits,Items,Alloc>
PolyhedronItems_3
CGAL::HalfedgeDS_vertex_min_base<Refs>
CGAL::HalfedgeDS_halfedge_min_base<Refs>
CGAL::HalfedgeDS_face_min_base<Refs>

Example

The following example shows the canonical implementation of the CGAL::HalfedgeDS_min_items class. It uses the base classes for the item types that are provided in the library.

struct HalfedgeDS_min_items {
    template < class Refs, class Traits>
    struct Vertex_wrapper {
        typedef CGAL::HalfedgeDS_vertex_min_base< Refs>   Vertex;
    };
    template < class Refs, class Traits>
    struct Halfedge_wrapper {
        typedef CGAL::HalfedgeDS_halfedge_min_base< Refs> Halfedge;
    };
    template < class Refs, class Traits>
    struct Face_wrapper {
        typedef CGAL::HalfedgeDS_face_min_base< Refs>     Face;
    };
};