Arithmetic_kernel -> Exact_integer/rational

This commit is contained in:
Andreas Fabri 2014-07-16 16:45:14 +02:00
parent e97efd228f
commit 2aa0f98526
14 changed files with 37 additions and 34 deletions

View File

@ -1,4 +1,4 @@
#include <CGAL/Arithmetic_kernel.h>
#include <CGAL/Exact_integer.h>
#include<CGAL/Homogeneous.h>
#include<CGAL/Nef_polyhedron_3.h>
#include<CGAL/IO/Nef_polyhedron_iostream_3.h>
@ -8,7 +8,7 @@
#include<CGAL/Nef_3/SNC_indexed_items.h>
#include<fstream>
typedef CGAL::Arithmetic_kernel::Integer RT;
typedef CGAL::Exact_integer RT;
typedef CGAL::Homogeneous<RT> Kernel;
typedef CGAL::Nef_polyhedron_3<Kernel> Nef_polyhedron_3;
//typedef CGAL::Nef_polyhedron_3<Kernel, CGAL::SNC_indexed_items> Nef_polyhedron_3;

View File

@ -1,8 +1,8 @@
#include <CGAL/Arithmetic_kernel.h>
#include <CGAL/Exact_integer.h>
#include<CGAL/Homogeneous.h>
#include<CGAL/Convex_decomposition_3/Edge_sorter.h>
typedef CGAL::Arithmetic_kernel::Integer RT;
typedef CGAL::Exact_integer RT;
typedef CGAL::Homogeneous<RT> Kernel;
typedef Kernel::Point_3 Point_3;
typedef Kernel::FT FT;

View File

@ -1,4 +1,4 @@
#include <CGAL/Arithmetic_kernel.h>
#include <CGAL/Exact_integer.h>
#include <CGAL/Homogeneous.h>
#include <CGAL/Nef_S2/Sphere_point.h>
#include <CGAL/Nef_S2/Sphere_circle.h>
@ -60,7 +60,7 @@ int main()
// CGAL_NEF_SETDTHREAD(239);
typedef CGAL::Arithmetic_kernel::Integer RT;
typedef CGAL::Exact_integer RT;
typedef CGAL::Homogeneous<RT> Kernel;
typedef Test_SNC<Kernel> SNC;
typedef SNC::Point_3 Point_3;

View File

@ -1,4 +1,4 @@
#include <CGAL/Arithmetic_kernel.h>
#include <CGAL/Exact_rational.h>
#include <CGAL/Simple_cartesian.h>
#include <CGAL/Exact_predicates_inexact_constructions_kernel.h>
#include <CGAL/Exact_predicates_exact_constructions_kernel.h>
@ -9,13 +9,13 @@
#include <boost/type_traits.hpp>
typedef CGAL::Arithmetic_kernel::Rational Precise_rational;
typedef CGAL::Exact_rational Exact_rational;
typedef CGAL::Exact_predicates_exact_constructions_kernel EPEC;
typedef CGAL::Exact_predicates_inexact_constructions_kernel EPIC;
typedef CGAL::Simple_cartesian<double> SCD;
typedef CGAL::Simple_cartesian<Precise_rational> SCR;
typedef CGAL::Simple_cartesian<Exact_rational> SCR;
using namespace CGAL::internal::Convex_hull_3;

View File

@ -1,4 +1,4 @@
#include <CGAL/Arithmetic_kernel.h>
#include <CGAL/Exact_rational.h>
#include <CGAL/Cartesian.h>
#include <fstream>
@ -10,8 +10,8 @@
#include <cassert>
typedef CGAL::Arithmetic_kernel::Rational Precise_rational;
typedef CGAL::Cartesian< Precise_rational > R;
typedef CGAL::Exact_rational Exact_rational;
typedef CGAL::Cartesian< Exact_rational > R;
typedef CGAL::Convex_hull_traits_3<R> Traits;
typedef Traits::Polyhedron_3 Polyhedron_3;
@ -22,7 +22,7 @@ typedef R::Triangle_3 Triangle_3;
typedef R::Plane_3 Plane_3;
typedef CGAL::Creator_uniform_3<Precise_rational, Point_3> Creator;
typedef CGAL::Creator_uniform_3<Exact_rational, Point_3> Creator;
typedef CGAL::Random_points_in_sphere_3<Point_3,Creator> Generator;
void test_coplanar_xy()

View File

@ -1,4 +1,4 @@
#include <CGAL/Arithmetic_kernel.h>
#include <CGAL/Exact_rational.h>
#include <CGAL/Cartesian.h>
#include <CGAL/Convex_hull_traits_3.h>
@ -8,7 +8,7 @@
#include <vector>
#include <cassert>
typedef CGAL::Arithmetic_kernel::Rational NT;
typedef CGAL::Exact_rational NT;
typedef CGAL::Cartesian<NT> K;
typedef CGAL::Convex_hull_traits_3<K> Traits;
typedef Traits::Polyhedron_3 Polyhedron_3;

View File

@ -8,12 +8,13 @@
#define VEC_DIM 10
#define MAT_DIM 10
#include <CGAL/Arithmetic_kernel.h>
#include <CGAL/Exact_integer.h>
#include <CGAL/Exact_rational.h>
#if defined( CGAL_USE_LEDA) || defined ( CGAL_USE_GMP )
typedef CGAL::Arithmetic_kernel::Integer RT;
typedef CGAL::Arithmetic_kernel::Rational FT;
typedef CGAL::Exact_integer RT;
typedef CGAL::Exact_rational FT;
#else

View File

@ -1,4 +1,4 @@
#include <CGAL/Arithmetic_kernel.h>
#include <CGAL/Exact_integer.h>
#include<CGAL/Homogeneous.h>
#include<CGAL/Nef_polyhedron_3.h>
#include<CGAL/IO/Nef_polyhedron_iostream_3.h>
@ -11,7 +11,7 @@
#include<CGAL/Minkowski_sum_3/Gaussian_map_to_nef_3.h>
#include<fstream>
typedef CGAL::Arithmetic_kernel::Integer RT;
typedef CGAL::Exact_integer RT;
typedef CGAL::Homogeneous<RT> Kernel;
typedef CGAL::Nef_polyhedron_3<Kernel, CGAL::SNC_indexed_items> Nef_polyhedron_3;
typedef CGAL::Polyhedron_3<Kernel> Polyhedron_3;

View File

@ -31,7 +31,8 @@
#define CGAL_NUMBER_TYPE_CONVERTER_NEF_3_H
#include<sstream>
#include <CGAL/Arithmetic_kernel.h>
#include <CGAL/Exact_rational.h>
#include <CGAL/Exact_integer.h>
#include <CGAL/Fraction_traits.h>
#include<CGAL/Cartesian.h>
#include<CGAL/Homogeneous.h>
@ -41,8 +42,8 @@
namespace CGAL {
typedef CGAL::Arithmetic_kernel::Integer Integer;
typedef CGAL::Arithmetic_kernel::Rational Rational;
typedef CGAL::Exact_integer Integer;
typedef CGAL::Exact_rational Rational;
class Homogeneous_tag;
class Cartesian_tag;

View File

@ -28,7 +28,8 @@
#define CGAL_NEF3_SORT_OUTPUT 1
#include <CGAL/Arithmetic_kernel.h>
#include <CGAL/Exact_integer.h>
#include <CGAL/Exact_rational.h>
#include <CGAL/Cartesian.h>
#include <CGAL/Homogeneous.h>
#include <CGAL/Nef_polyhedron_3.h>
@ -40,8 +41,8 @@
#include <string>
typedef CGAL::Arithmetic_kernel::Integer NT;
typedef CGAL::Arithmetic_kernel::Rational FNT;
typedef CGAL::Exact_integer NT;
typedef CGAL::Exact_rational FNT;
template<typename Kernel>

View File

@ -26,13 +26,13 @@
#define CGAL_NEF3_SORT_OUTPUT 1
#include <CGAL/Arithmetic_kernel.h>
#include <CGAL/Exact_integer.h>
#include <CGAL/Extended_homogeneous.h>
#include <CGAL/Timer.h>
#include <CGAL/test_Nef_3.h>
int main() {
typedef CGAL::Arithmetic_kernel::Integer NT;
typedef CGAL::Exact_integer NT;
typedef CGAL::Extended_homogeneous<NT> EH_kernel;
#ifdef CGAL_CFG_ISTREAM_INT_BUG

View File

@ -26,13 +26,13 @@
#define CGAL_NEF3_SORT_OUTPUT 1
#include <CGAL/Arithmetic_kernel.h>
#include <CGAL/Exact_integer.h>
#include <CGAL/Homogeneous.h>
#include <CGAL/Timer.h>
#include <CGAL/test_Nef_3.h>
int main() {
typedef CGAL::Arithmetic_kernel::Integer NT;
typedef CGAL::Exact_integer NT;
typedef CGAL::Homogeneous<NT> H_kernel;
#ifdef CGAL_CFG_ISTREAM_INT_BUG

View File

@ -26,14 +26,14 @@
#define CGAL_NEF3_SORT_OUTPUT 1
#include <CGAL/Arithmetic_kernel.h>
typedef CGAL::Arithmetic_kernel::Rational NT;
#include <CGAL/Exact_rational.h>
#include <CGAL/Simple_cartesian.h>
#include <CGAL/Lazy_kernel.h>
#include <CGAL/Timer.h>
#include <CGAL/test_Nef_3.h>
int main() {
typedef CGAL::Exact_rational NT;
typedef CGAL::Lazy_kernel<CGAL::Simple_cartesian<NT> > LC_kernel;
#ifdef CGAL_CFG_ISTREAM_INT_BUG

View File

@ -1,7 +1,7 @@
#define CGAL_POLYGON_DEBUG 1
#include <CGAL/Cartesian.h>
#include <CGAL/Arithmetic_kernel.h>
#include <CGAL/Exact_rational.h>
#include <CGAL/Point_2.h>
#include <CGAL/Polygon_2_algorithms.h>
@ -17,7 +17,7 @@ using std::endl;
bool TestSimplicity(const char* FileName)
// tests the simplicity of the polygon in the file FileName
{
typedef CGAL::Arithmetic_kernel::Rational NT;
typedef CGAL::Exact_rational NT;
typedef CGAL::Cartesian<NT> K;
typedef CGAL::Point_2<K> Point;