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 ;
|
||||
b &= test_kernel<CGAL::Simple_cartesian<double> >(true);
|
||||
|
||||
|
||||
#ifdef CGAL_USE_GMP
|
||||
std::cout << std::endl << "Testing with Simple_cartesian<Gmpq>..." << std::endl ;
|
||||
b &= test_kernel<CGAL::Simple_cartesian<CGAL::Gmpq> >(true);
|
||||
|
||||
#endif
|
||||
std::cout << std::endl << "Testing with Cartesian<float>..." << std::endl ;
|
||||
b &= test_kernel<CGAL::Cartesian<float> >(false);
|
||||
|
||||
|
|
|
|||
|
|
@ -1,18 +1,13 @@
|
|||
#include <CGAL/Cartesian.h>
|
||||
#ifdef CGAL_USE_GMP
|
||||
#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
|
||||
#include <CGAL/Arithmetic_kernel.h>
|
||||
|
||||
typedef CGAL::Cartesian<NT> Kernel;
|
||||
typedef Kernel::Triangle_3 Triangle;
|
||||
typedef Kernel::Point_3 Point;
|
||||
typedef Kernel::Segment_3 Segment;
|
||||
typedef std::vector<Point> Polygon2;
|
||||
// leda_rational, or Gmpq, or Quotient<MP_float>
|
||||
typedef CGAL::Arithmetic_kernel::Rational NT;
|
||||
typedef CGAL::Cartesian<NT> Kernel;
|
||||
typedef Kernel::Triangle_3 Triangle;
|
||||
typedef Kernel::Point_3 Point;
|
||||
typedef Kernel::Segment_3 Segment;
|
||||
typedef std::vector<Point> Polygon2;
|
||||
|
||||
void test_coplanar_triangles(){
|
||||
CGAL::Object obj;
|
||||
|
|
|
|||
Loading…
Reference in New Issue