mirror of https://github.com/CGAL/cgal
Cartesian->Homogeneous with ring NT
This commit is contained in:
parent
1bb80d52ec
commit
c7d7cf22c1
|
|
@ -2,7 +2,7 @@
|
||||||
// as input type and some internal EXACT floating point type
|
// as input type and some internal EXACT floating point type
|
||||||
#include <iostream>
|
#include <iostream>
|
||||||
#include <cassert>
|
#include <cassert>
|
||||||
#include <CGAL/Simple_cartesian.h>
|
#include <CGAL/Homogeneous.h>
|
||||||
#include <CGAL/Polytope_distance_d.h>
|
#include <CGAL/Polytope_distance_d.h>
|
||||||
#include <CGAL/Polytope_distance_d_traits_3.h>
|
#include <CGAL/Polytope_distance_d_traits_3.h>
|
||||||
|
|
||||||
|
|
@ -15,7 +15,7 @@ typedef CGAL::MP_Float ET;
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
// use an EXACT kernel...
|
// use an EXACT kernel...
|
||||||
typedef CGAL::Simple_cartesian<ET> K;
|
typedef CGAL::Homogeneous<ET> K;
|
||||||
typedef K::Point_3 Point;
|
typedef K::Point_3 Point;
|
||||||
// ...and the traits class based on the exact kernel
|
// ...and the traits class based on the exact kernel
|
||||||
typedef CGAL::Polytope_distance_d_traits_3<K> Traits;
|
typedef CGAL::Polytope_distance_d_traits_3<K> Traits;
|
||||||
|
|
|
||||||
|
|
@ -4,7 +4,7 @@
|
||||||
// internal computations
|
// internal computations
|
||||||
#include <iostream>
|
#include <iostream>
|
||||||
#include <cassert>
|
#include <cassert>
|
||||||
#include <CGAL/Simple_cartesian.h>
|
#include <CGAL/Homogeneous.h>
|
||||||
#include <CGAL/Polytope_distance_d.h>
|
#include <CGAL/Polytope_distance_d.h>
|
||||||
#include <CGAL/Polytope_distance_d_traits_3.h>
|
#include <CGAL/Polytope_distance_d_traits_3.h>
|
||||||
|
|
||||||
|
|
@ -17,7 +17,7 @@ typedef CGAL::MP_Float ET;
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
// use an inexact kernel...
|
// use an inexact kernel...
|
||||||
typedef CGAL::Simple_cartesian<double> K;
|
typedef CGAL::Homogeneous<double> K;
|
||||||
typedef K::Point_3 Point;
|
typedef K::Point_3 Point;
|
||||||
// ... and the EXACT traits class based on the inexcat kernel
|
// ... and the EXACT traits class based on the inexcat kernel
|
||||||
typedef CGAL::Polytope_distance_d_traits_3<K, ET, double> Traits;
|
typedef CGAL::Polytope_distance_d_traits_3<K, ET, double> Traits;
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue