CGAL 5.6 - 2D and 3D Linear Geometry Kernel
|
#include <CGAL/Dimension.h>
An object of the class Dynamic_dimension_tag
is an empty object which can be used for dispatching functions based on the dimension of an object.
Dynamic_dimension_tag
indicates that the dimension is not known at compile-time. Dimension_tag
is the tag class dealing with compile-time dimensions.
Example
The following code declares two functions constructing two points at the origin, either in 2D or in 3D.
CGAL::Dimension_tag<int dim>
CGAL::Ambient_dimension<T, K>
CGAL::Feature_dimension<T, K>