diff --git a/Segment_Delaunay_graph_Linf_2/include/CGAL/Segment_Delaunay_graph_Linf_filtered_traits_2.h b/Segment_Delaunay_graph_Linf_2/include/CGAL/Segment_Delaunay_graph_Linf_filtered_traits_2.h index 4f9c4a31648..5335a26b209 100644 --- a/Segment_Delaunay_graph_Linf_2/include/CGAL/Segment_Delaunay_graph_Linf_filtered_traits_2.h +++ b/Segment_Delaunay_graph_Linf_2/include/CGAL/Segment_Delaunay_graph_Linf_filtered_traits_2.h @@ -221,7 +221,7 @@ template, #else - class EK = Simple_cartesian< MP_Float >, + class EK = Simple_cartesian< CGAL::Quotient >, #endif class EK_MTag = Integral_domain_without_division_tag, class FK = Simple_cartesian< Interval_nt >, diff --git a/Segment_Delaunay_graph_Linf_2/include/CGAL/Side_of_bounded_square_2.h b/Segment_Delaunay_graph_Linf_2/include/CGAL/Side_of_bounded_square_2.h index 17cfb236743..37f205cf6c4 100644 --- a/Segment_Delaunay_graph_Linf_2/include/CGAL/Side_of_bounded_square_2.h +++ b/Segment_Delaunay_graph_Linf_2/include/CGAL/Side_of_bounded_square_2.h @@ -70,7 +70,7 @@ namespace CGAL { bool samepq = false; bool samepr = false; bool sameqr = false; - const Comparison_result cmppq = compare(p, q); + const Comparison_result cmppq = CGAL::compare(p, q); switch(cmppq) { case SMALLER: min_p = &p; @@ -86,7 +86,7 @@ namespace CGAL { samepq = true; break; } - const Comparison_result cmppr = compare(p, r); + const Comparison_result cmppr = CGAL::compare(p, r); Comparison_result cmpqr; if (samepq) { cmpqr = cmppr; @@ -105,7 +105,7 @@ namespace CGAL { if (min_p == &p) { switch(cmppr) { case SMALLER: - cmpqr = compare(q, r); + cmpqr = CGAL::compare(q, r); switch(cmpqr) { case SMALLER: max_p = &r; @@ -135,7 +135,7 @@ namespace CGAL { max_p = &r; break; case LARGER: - cmpqr = compare(q, r); + cmpqr = CGAL::compare(q, r); switch(cmpqr) { case SMALLER: break; diff --git a/Segment_Delaunay_graph_Linf_2/test/Segment_Delaunay_graph_Linf_2/test_sdg_linf_2_et.cpp b/Segment_Delaunay_graph_Linf_2/test/Segment_Delaunay_graph_Linf_2/test_sdg_linf_2_et.cpp index eca8eee9727..a53b491851c 100644 --- a/Segment_Delaunay_graph_Linf_2/test/Segment_Delaunay_graph_Linf_2/test_sdg_linf_2_et.cpp +++ b/Segment_Delaunay_graph_Linf_2/test/Segment_Delaunay_graph_Linf_2/test_sdg_linf_2_et.cpp @@ -10,28 +10,19 @@ #include #include -// choose number type -#ifdef CGAL_USE_GMP +#include +#include -# include -typedef CGAL::Gmpq exact_ring_t; -typedef CGAL::Gmpq exact_field_t; +// choose number type +typedef CGAL::Exact_integer exact_ring_t; +typedef CGAL::Exact_rational exact_field_t; namespace CGAL { // needed for the drawing methods -Gmpq sqrt(const Gmpq& x) { - return Gmpq( CGAL::sqrt( CGAL::to_double(x) ) ); +exact_ring_t sqrt(const exact_ring_t& x) { + return exact_ring_t( sqrt( to_double(x) ) ); +} } - -} //namespace CGAL -#else - -# include -# include -typedef CGAL::MP_Float exact_ring_t; -typedef CGAL::Quotient exact_field_t; - -#endif typedef exact_ring_t ring_number_t; typedef exact_field_t field_number_t; diff --git a/Segment_Delaunay_graph_Linf_2/test/Segment_Delaunay_graph_Linf_2/test_sdg_linf_2_ft.cpp b/Segment_Delaunay_graph_Linf_2/test/Segment_Delaunay_graph_Linf_2/test_sdg_linf_2_ft.cpp index 91e5edbe13c..1030d7a135b 100644 --- a/Segment_Delaunay_graph_Linf_2/test/Segment_Delaunay_graph_Linf_2/test_sdg_linf_2_ft.cpp +++ b/Segment_Delaunay_graph_Linf_2/test/Segment_Delaunay_graph_Linf_2/test_sdg_linf_2_ft.cpp @@ -10,17 +10,12 @@ #include #include +#include +#include + // choose number type -#ifdef CGAL_USE_GMP -# include -typedef CGAL::Gmpq exact_ring_t; -typedef CGAL::Gmpq exact_field_t; -#else -# include -# include -typedef CGAL::MP_Float exact_ring_t; -typedef CGAL::Quotient exact_field_t; -#endif +typedef CGAL::Exact_integer exact_ring_t; +typedef CGAL::Exact_rational exact_field_t; #include diff --git a/Segment_Delaunay_graph_Linf_2/test/Segment_Delaunay_graph_Linf_2/test_sdg_linf_hierarchy_2_et.cpp b/Segment_Delaunay_graph_Linf_2/test/Segment_Delaunay_graph_Linf_2/test_sdg_linf_hierarchy_2_et.cpp index 2f05e01dac2..50a1bdd0e34 100644 --- a/Segment_Delaunay_graph_Linf_2/test/Segment_Delaunay_graph_Linf_2/test_sdg_linf_hierarchy_2_et.cpp +++ b/Segment_Delaunay_graph_Linf_2/test/Segment_Delaunay_graph_Linf_2/test_sdg_linf_hierarchy_2_et.cpp @@ -10,28 +10,19 @@ #include #include -// choose number type -#ifdef CGAL_USE_GMP +#include +#include -# include -typedef CGAL::Gmpq exact_ring_t; -typedef CGAL::Gmpq exact_field_t; +// choose number type +typedef CGAL::Exact_integer exact_ring_t; +typedef CGAL::Exact_rational exact_field_t; namespace CGAL { // needed for the drawing methods -Gmpq sqrt(const Gmpq& x) { - return Gmpq( sqrt( to_double(x) ) ); +exact_ring_t sqrt(const exact_ring_t& x) { + return exact_ring_t( sqrt( to_double(x) ) ); +} } - -} //namespace CGAL -#else - -# include -# include -typedef CGAL::MP_Float exact_ring_t; -typedef CGAL::Quotient exact_field_t; - -#endif typedef exact_ring_t ring_number_t; typedef exact_field_t field_number_t; diff --git a/Segment_Delaunay_graph_Linf_2/test/Segment_Delaunay_graph_Linf_2/test_sdg_linf_hierarchy_2_ft.cpp b/Segment_Delaunay_graph_Linf_2/test/Segment_Delaunay_graph_Linf_2/test_sdg_linf_hierarchy_2_ft.cpp index 458a3a81c31..3e16425979c 100644 --- a/Segment_Delaunay_graph_Linf_2/test/Segment_Delaunay_graph_Linf_2/test_sdg_linf_hierarchy_2_ft.cpp +++ b/Segment_Delaunay_graph_Linf_2/test/Segment_Delaunay_graph_Linf_2/test_sdg_linf_hierarchy_2_ft.cpp @@ -10,17 +10,12 @@ #include #include +#include +#include + // choose number type -#ifdef CGAL_USE_GMP -# include -typedef CGAL::Gmpq exact_ring_t; -typedef CGAL::Gmpq exact_field_t; -#else -# include -# include -typedef CGAL::MP_Float exact_ring_t; -typedef CGAL::Quotient exact_field_t; -#endif +typedef CGAL::Exact_integer exact_ring_t; +typedef CGAL::Exact_rational exact_field_t; #include diff --git a/Segment_Delaunay_graph_Linf_2/test/Segment_Delaunay_graph_Linf_2/test_sdg_linf_new_range_api.cpp b/Segment_Delaunay_graph_Linf_2/test/Segment_Delaunay_graph_Linf_2/test_sdg_linf_new_range_api.cpp index 791a866fb99..8b5124e1c6c 100644 --- a/Segment_Delaunay_graph_Linf_2/test/Segment_Delaunay_graph_Linf_2/test_sdg_linf_new_range_api.cpp +++ b/Segment_Delaunay_graph_Linf_2/test/Segment_Delaunay_graph_Linf_2/test_sdg_linf_new_range_api.cpp @@ -7,12 +7,14 @@ #include #include #include -#include +#include typedef CGAL::Exact_predicates_inexact_constructions_kernel K; typedef CGAL::Field_with_sqrt_tag MTag; typedef CGAL::Integral_domain_without_division_tag EMTag; -typedef CGAL::Simple_cartesian EK; +typedef CGAL::Exact_rational Number_type; + +typedef CGAL::Simple_cartesian EK; typedef CGAL::Segment_Delaunay_graph_Linf_filtered_traits_without_intersections_2 Gt; typedef CGAL::Segment_Delaunay_graph_Linf_2 SDG;