mirror of https://github.com/CGAL/cgal
also test leda if it is available
This commit is contained in:
parent
e370c5eaa5
commit
5cc398f7fe
|
|
@ -678,10 +678,11 @@ int main()
|
||||||
|
|
||||||
std::cout << std::endl << "Testing with Simple_cartesian<double>..." << std::endl ;
|
std::cout << std::endl << "Testing with Simple_cartesian<double>..." << std::endl ;
|
||||||
b &= test_kernel<CGAL::Simple_cartesian<double> >(true);
|
b &= test_kernel<CGAL::Simple_cartesian<double> >(true);
|
||||||
|
|
||||||
|
#ifdef CGAL_USE_GMP
|
||||||
std::cout << std::endl << "Testing with Simple_cartesian<Gmpq>..." << std::endl ;
|
std::cout << std::endl << "Testing with Simple_cartesian<Gmpq>..." << std::endl ;
|
||||||
b &= test_kernel<CGAL::Simple_cartesian<CGAL::Gmpq> >(true);
|
b &= test_kernel<CGAL::Simple_cartesian<CGAL::Gmpq> >(true);
|
||||||
|
#endif
|
||||||
std::cout << std::endl << "Testing with Cartesian<float>..." << std::endl ;
|
std::cout << std::endl << "Testing with Cartesian<float>..." << std::endl ;
|
||||||
b &= test_kernel<CGAL::Cartesian<float> >(false);
|
b &= test_kernel<CGAL::Cartesian<float> >(false);
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -1,18 +1,13 @@
|
||||||
#include <CGAL/Cartesian.h>
|
#include <CGAL/Cartesian.h>
|
||||||
#ifdef CGAL_USE_GMP
|
#include <CGAL/Arithmetic_kernel.h>
|
||||||
#include <CGAL/Gmpq.h>
|
|
||||||
typedef CGAL::Gmpq NT;
|
|
||||||
#else
|
|
||||||
#include <CGAL/MP_Float.h>
|
|
||||||
#include <CGAL/Quotient.h>
|
|
||||||
typedef CGAL::Quotient<CGAL::MP_Float> NT;
|
|
||||||
#endif
|
|
||||||
|
|
||||||
typedef CGAL::Cartesian<NT> Kernel;
|
// leda_rational, or Gmpq, or Quotient<MP_float>
|
||||||
typedef Kernel::Triangle_3 Triangle;
|
typedef CGAL::Arithmetic_kernel::Rational NT;
|
||||||
typedef Kernel::Point_3 Point;
|
typedef CGAL::Cartesian<NT> Kernel;
|
||||||
typedef Kernel::Segment_3 Segment;
|
typedef Kernel::Triangle_3 Triangle;
|
||||||
typedef std::vector<Point> Polygon2;
|
typedef Kernel::Point_3 Point;
|
||||||
|
typedef Kernel::Segment_3 Segment;
|
||||||
|
typedef std::vector<Point> Polygon2;
|
||||||
|
|
||||||
void test_coplanar_triangles(){
|
void test_coplanar_triangles(){
|
||||||
CGAL::Object obj;
|
CGAL::Object obj;
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue