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.
Point_d<K> get_origin(Dynamic_dimension_tag) {
return Point_d<K>(
ORIGIN); }
std::cout << get_origin(Dynamic_dimension_tag())) << std::endl;
An object p of the class Point_2 is a point in the two-dimensional Euclidean plane .
Definition Point_2.h:37
An object of the class Point_3 is a point in the three-dimensional Euclidean space .
Definition Point_3.h:23
const CGAL::Origin ORIGIN
A symbolic constant which denotes the point at the origin.
Definition enum.h:169
An object of the class Dimension_tag is an empty object which can be used for dispatching functions b...
Definition Dimension.h:86
- See also
- CGAL::Dimension_tag<int dim>
-
CGAL::Ambient_dimension<T, K>
-
CGAL::Feature_dimension<T, K>