diff --git a/Snap_rounding_2/test/Snap_rounding_2/test_float_snap_rounding_2.cpp b/Snap_rounding_2/test/Snap_rounding_2/test_float_snap_rounding_2.cpp index 13893cc23c8..0596c647917 100644 --- a/Snap_rounding_2/test/Snap_rounding_2/test_float_snap_rounding_2.cpp +++ b/Snap_rounding_2/test/Snap_rounding_2/test_float_snap_rounding_2.cpp @@ -8,12 +8,9 @@ #include -#include - #include -#include -typedef CGAL::Exact_predicates_exact_constructions_kernel Kernel; +typedef CGAL::Exact_predicates_inexact_constructions_kernel Kernel; typedef CGAL::Float_snap_rounding_traits_2 Traits_2; typedef Kernel::Segment_2 Segment_2; typedef Kernel::Point_2 Point_2; @@ -29,9 +26,14 @@ typedef CGAL::Polygon_2 Polygon_2; typedef CGAL::Polygon_with_holes_2 Polygon_with_holes_2; typedef std::vector Pwh_vec_2; -typedef CGAL::Cartesian Naive; +#ifdef BENCH_AND_VERBOSE_FLOAT_SNAP_ROUNDING_2 +#include +#include +#include +typedef CGAL::Simple_cartesian Naive; typedef CGAL::Cartesian_converter EK_to_IK; typedef CGAL::Cartesian_converter IK_to_EK; +#endif #ifdef COMPARE_WITH_INTEGER_SNAP_ROUNDING_2 #include @@ -61,6 +63,7 @@ Point_2 random_noise_point(CGAL::Random& r, double m, double M, Vector_2 v) return Point_2(FT(r.get_double(m, M) + CGAL::to_double(v.x())), FT(r.get_double(m, M) + CGAL::to_double(v.y()))); } +#ifdef BENCH_AND_VERBOSE_FLOAT_SNAP_ROUNDING_2 template void compute_subcurves_and_naive_snap(Iterator begin, Iterator end, OutRange &out){ EK_to_IK to_inexact; @@ -79,6 +82,7 @@ void compute_subcurves_and_naive_snap(Iterator begin, Iterator end, OutRange &ou } std::swap(out,out2); } +#endif void test(const std::vector &segs){ std::vector out;