Fix Segment_Delaunay_graph_2

This commit is contained in:
Andreas Fabri 2019-03-26 11:35:38 +01:00
parent a622a4c70b
commit 3b65d79b11
1 changed files with 22 additions and 32 deletions

View File

@ -13,9 +13,9 @@
#include <CGAL/Exact_algebraic.h> #include <CGAL/Exact_algebraic.h>
#endif #endif
#if defined(CGAL_USE_GMP) || defined(CGAL_USE_LEDA)
#include <CGAL/Exact_rational.h> #include <CGAL/Exact_rational.h>
#endif #include <CGAL/Exact_integer.h>
typedef CGAL::Simple_cartesian<double> Double_Kernel; typedef CGAL::Simple_cartesian<double> Double_Kernel;
typedef CGAL::Simple_cartesian<CGAL::Interval_nt<true> > IT_Kernel; typedef CGAL::Simple_cartesian<CGAL::Interval_nt<true> > IT_Kernel;
@ -26,10 +26,8 @@ typedef CGAL::Simple_cartesian<double> Double_Kernel;
typedef CGAL::Simple_cartesian<CGAL::Exact_algebraic> Algebraic_Kernel; typedef CGAL::Simple_cartesian<CGAL::Exact_algebraic> Algebraic_Kernel;
#endif #endif
#if defined(CGAL_USE_GMP) || defined(CGAL_USE_LEDA) typedef CGAL::Simple_cartesian<CGAL::Exact_rational> Rational_Kernel;
typedef CGAL::Simple_cartesian<CGAL::Gmpq> Gmpq_Kernel; typedef CGAL::Simple_cartesian<CGAL::Exact_integer> Integer_Kernel;
typedef CGAL::Simple_cartesian<CGAL::Gmpz> Gmpz_Kernel;
#endif
typedef CGAL::Integral_domain_without_division_tag Ring; typedef CGAL::Integral_domain_without_division_tag Ring;
typedef CGAL::Field_tag Field; typedef CGAL::Field_tag Field;
@ -108,20 +106,18 @@ Algebraic_Sqrt_Gt;
//---------------------------------------------------------------------- //----------------------------------------------------------------------
#if defined(CGAL_USE_GMP) || defined(CGAL_USE_LEDA)
typedef CGAL::Segment_Delaunay_graph_traits_without_intersections_2 typedef CGAL::Segment_Delaunay_graph_traits_without_intersections_2
<Gmpz_Kernel,Ring> <Integer_Kernel,Ring>
Gmpz_Ring_Gtwi; Integer_Ring_Gtwi;
//---------------------------------------------------------------------- //----------------------------------------------------------------------
typedef CGAL::Segment_Delaunay_graph_traits_without_intersections_2 typedef CGAL::Segment_Delaunay_graph_traits_without_intersections_2
<Gmpq_Kernel,Ring> <Rational_Kernel,Ring>
Gmpq_Ring_Gtwi; Rational_Ring_Gtwi;
typedef CGAL::Segment_Delaunay_graph_traits_2<Gmpq_Kernel,Field> typedef CGAL::Segment_Delaunay_graph_traits_2<Rational_Kernel,Field>
Gmpq_Field_Gt; Rational_Field_Gt;
#endif
//---------------------------------------------------------------------- //----------------------------------------------------------------------
//---------------------------------------------------------------------- //----------------------------------------------------------------------
@ -146,21 +142,19 @@ F_Algebraic_Sqrt_Gt;
//---------------------------------------------------------------------- //----------------------------------------------------------------------
#if defined(CGAL_USE_GMP) || defined(CGAL_USE_LEDA)
typedef CGAL::Segment_Delaunay_graph_filtered_traits_without_intersections_2 typedef CGAL::Segment_Delaunay_graph_filtered_traits_without_intersections_2
<Double_Kernel,Sqrt,Gmpz_Kernel,Ring> <Double_Kernel,Sqrt,Integer_Kernel,Ring>
F_Gmpz_Ring_Gtwi; F_Integer_Ring_Gtwi;
//---------------------------------------------------------------------- //----------------------------------------------------------------------
typedef CGAL::Segment_Delaunay_graph_filtered_traits_without_intersections_2 typedef CGAL::Segment_Delaunay_graph_filtered_traits_without_intersections_2
<Double_Kernel,Sqrt,Gmpq_Kernel,Ring> <Double_Kernel,Sqrt,Rational_Kernel,Ring>
F_Gmpq_Ring_Gtwi; F_Rational_Ring_Gtwi;
typedef CGAL::Segment_Delaunay_graph_filtered_traits_2 typedef CGAL::Segment_Delaunay_graph_filtered_traits_2
<Double_Kernel,Sqrt,Gmpq_Kernel,Field> <Double_Kernel,Sqrt,Rational_Kernel,Field>
F_Gmpq_Field_Gt; F_Rational_Field_Gt;
#endif
//---------------------------------------------------------------------- //----------------------------------------------------------------------
//---------------------------------------------------------------------- //----------------------------------------------------------------------
@ -271,12 +265,10 @@ int main(int , char**)
test_traits<Algebraic_Sqrt_Gt>("Algebraic Sqrt"); test_traits<Algebraic_Sqrt_Gt>("Algebraic Sqrt");
#endif #endif
#if defined(CGAL_USE_GMP) || defined(CGAL_USE_LEDA) test_traits<Integer_Ring_Gtwi>("Integer Ring WI");
test_traits<Gmpz_Ring_Gtwi>("Gmpz Ring WI");
test_traits<Gmpq_Ring_Gtwi>("Gmpq Ring WI"); test_traits<Rational_Ring_Gtwi>("Rational Ring WI");
test_traits<Gmpq_Field_Gt>("Gmpq Field"); test_traits<Rational_Field_Gt>("Rational Field");
#endif
std::cout << std::endl; std::cout << std::endl;
std::cout << "************************************" std::cout << "************************************"
@ -291,12 +283,10 @@ int main(int , char**)
test_traits<F_Algebraic_Sqrt_Gt>("F Algebraic Sqrt"); test_traits<F_Algebraic_Sqrt_Gt>("F Algebraic Sqrt");
#endif #endif
#if defined(CGAL_USE_GMP) || defined(CGAL_USE_LEDA) test_traits<F_Integer_Ring_Gtwi>("F Integer Ring WI");
test_traits<F_Gmpz_Ring_Gtwi>("F Gmpz Ring WI");
test_traits<F_Gmpq_Ring_Gtwi>("F Gmpq Ring WI"); test_traits<F_Rational_Ring_Gtwi>("F Rational Ring WI");
test_traits<F_Gmpq_Field_Gt>("F Gmpq Field"); test_traits<F_Rational_Field_Gt>("F Rational Field");
#endif
std::cout << std::endl; std::cout << std::endl;
std::cout << "************************************" std::cout << "************************************"