mirror of https://github.com/CGAL/cgal
use leda_ratioanal if available
This commit is contained in:
parent
4b91ac49af
commit
577bd4cf7f
|
|
@ -1,14 +1,8 @@
|
||||||
#define CGAL_POLYGON_DEBUG 1
|
#define CGAL_POLYGON_DEBUG 1
|
||||||
|
|
||||||
#include <CGAL/Cartesian.h>
|
#include <CGAL/Cartesian.h>
|
||||||
#include <CGAL/Quotient.h>
|
#include <CGAL/Arithmetic_kernel.h>
|
||||||
#ifdef CGAL_USE_GMP
|
|
||||||
#include <CGAL/Gmpz.h>
|
|
||||||
typedef CGAL::Quotient<CGAL::Gmpz> NT;
|
|
||||||
#else
|
|
||||||
#include <CGAL/MP_Float.h>
|
|
||||||
typedef CGAL::Quotient<CGAL::MP_Float> NT;
|
|
||||||
#endif
|
|
||||||
#include <CGAL/Point_2.h>
|
#include <CGAL/Point_2.h>
|
||||||
#include <CGAL/Polygon_2_algorithms.h>
|
#include <CGAL/Polygon_2_algorithms.h>
|
||||||
|
|
||||||
|
|
@ -23,6 +17,7 @@ using std::endl;
|
||||||
bool TestSimplicity(const char* FileName)
|
bool TestSimplicity(const char* FileName)
|
||||||
// tests the simplicity of the polygon in the file FileName
|
// tests the simplicity of the polygon in the file FileName
|
||||||
{
|
{
|
||||||
|
typedef Arithmetic_kernel::Rational NT;
|
||||||
typedef CGAL::Cartesian<NT> K;
|
typedef CGAL::Cartesian<NT> K;
|
||||||
typedef CGAL::Point_2<K> Point;
|
typedef CGAL::Point_2<K> Point;
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue