Class

CGAL::Polyhedron_items_with_id_3

Definition

The class Polyhedron_items_with_id_3 is a model of the PolyhedronItems_3 concept. It provides definitions for vertices with points, halfedges, and faces with plane equations, all of them with an additional integer field which can be used to index the items in a Bgl algorithm. The polyhedron traits class must provide the respective types for the point and the plane equation. Vertices and facets both contain a halfedge handle to an incident halfedge.

#include <CGAL/Polyhedron_items_with_id_3.h>

Is Model for the Concepts

PolyhedronItems_3

Types in Polyhedron_items_with_id_3::Vertex_wrapper<Refs,Traits>::Vertex

typedef Traits::Point_3 Point;
typedef CGAL::Tag_true Supports_vertex_point;

Types in Polyhedron_items_with_id_3::Face_wrapper<Refs,Traits>::Face

typedef Traits::Plane_3 Plane;
typedef CGAL::Tag_true Supports_face_plane;

Additional methods in all three items.

int item.id () const Returns the index.
int& item.id () Returns a reference to the index stored in the item.

Creation

Polyhedron_items_with_id_3 items;
default constructor.

Operations

Supported as required by the PolyhedronItems_3 concept.

See Also

CGAL::Polyhedron_3<Traits>
CGAL::Polyhedron_min_items_3
CGAL::HalfedgeDS_min_items
CGAL::HalfedgeDS_items_2
CGAL::HalfedgeDS_vertex_max_base_with_id<Refs>
CGAL::HalfedgeDS_halfedge_max_base_with_id<Refs>
CGAL::HalfedgeDS_face_max_base_with_id<Refs>