Improve the Triangulation_3 benchmark driver program: one can now change

the kernel type just by defining macros at compile time.
This commit is contained in:
Laurent Rineau 2010-12-16 15:16:08 +00:00
parent 83edee1bb3
commit e378f48eb2
1 changed files with 15 additions and 2 deletions

View File

@ -55,9 +55,22 @@
using namespace std;
using namespace CGAL;
// typedef Simple_cartesian<double> K;
// Choose the kernel type by defining one of those macros:
// - SC_DOUBLE,
// - EPEC,
// - or EPIC (the default)
#ifdef SC_DOUBLE
typedef Simple_cartesian<double> K;
#elif defined(EPEC)
# ifdef CGAL_DONT_USE_LAZY_KERNEL
typedef Epeck K;
# else
typedef Simple_cartesian<Gmpq> SK;
typedef Lazy_kernel<SK> K;
# endif
#else // EPIC
typedef Exact_predicates_inexact_constructions_kernel K;
//typedef Exact_predicates_exact_constructions_kernel K;
#endif
typedef Regular_triangulation_euclidean_traits_3<K> WK;
typedef K::Point_3 Point;