mirror of https://github.com/CGAL/cgal
Switch to Epick-with-float using a new macro
If `CGAL_EPICK_SINGLE_PRECISION` is defined, then the number type of `CGAL::Epick` is `float` instead of `double`.
This commit is contained in:
parent
4e3d51cd2e
commit
026049cf8e
|
|
@ -26,9 +26,15 @@ namespace CGAL {
|
||||||
// The following is equivalent to Filtered_kernel< Simple_cartesian<double> >,
|
// The following is equivalent to Filtered_kernel< Simple_cartesian<double> >,
|
||||||
// but it's shorter in terms of template name length (for error messages, mangling...).
|
// but it's shorter in terms of template name length (for error messages, mangling...).
|
||||||
|
|
||||||
|
#ifndef CGAL_EPICK_SINGLE_PRECISION
|
||||||
|
using Epick_number_type = double;
|
||||||
|
#else
|
||||||
|
using Epick_number_type = float;
|
||||||
|
#endif
|
||||||
|
|
||||||
class Epick
|
class Epick
|
||||||
: public Filtered_kernel_adaptor<
|
: public Filtered_kernel_adaptor<
|
||||||
Type_equality_wrapper< Simple_cartesian<double>::Base<Epick>::Type, Epick >,
|
Type_equality_wrapper< Simple_cartesian<Epick_number_type>::Base<Epick>::Type, Epick >,
|
||||||
#ifdef CGAL_NO_STATIC_FILTERS
|
#ifdef CGAL_NO_STATIC_FILTERS
|
||||||
false >
|
false >
|
||||||
#else
|
#else
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue