CGAL 4.4 - 3D Polyhedral Surface
|
#include <CGAL/Polyhedron_traits_with_normals_3.h>
The class Polyhedron_traits_with_normals_3
is a model of the PolyhedronTraits_3
concept.
It defines the geometric types and primitive operations used in the polyhedral surface data structure Polyhedron_3<PolyhedronTraits_3>
. Polyhedron_traits_with_normals_3
uses the normal vector from Kernel
for the plane equation in facets. It keeps a local copy of the kernel which makes it suitable for kernels with local state.
CGAL::Polyhedron_traits_3<Kernel>
Example
We use this traits class to instantiate a polyhedral surface with a normal vector and no plane equation for each facet. We compute the normal vector assuming exact arithmetic (integers in this example) and convex planar facets.
File Polyhedron/polyhedron_prog_normals.cpp
Types | |
typedef unspecified_type | Kernel |
the Kernel model. | |
typedef Kernel::Point_3 | Point_3 |
typedef Kernel::Vector_3 | Plane_3 |
typedef Kernel::Construct_opposite_vector_3 | Construct_opposite_plane_3 |
Creation | |
Polyhedron_traits_with_normals_3 () | |
default constructor, uses Kernel() as local reference to the kernel. | |
Polyhedron_traits_with_normals_3 (const Kernel &kernel) | |
stores kernel as local reference. | |
Operations | |
Construct_opposite_plane_3 | construct_opposite_plane_3_object () |
forwarded to kernel . | |