mirror of https://github.com/CGAL/cgal
- Use Filtered_exact<MP_Float> in the demo/examples.
This commit is contained in:
parent
1f0e281848
commit
921bbab3de
|
|
@ -1,3 +1,6 @@
|
|||
Version 1.70 (3 July 01)
|
||||
- Use Filtered_exact<MP_Float> in the demo/examples.
|
||||
|
||||
Version 1.69 (3 July 01)
|
||||
- fix in read_cells
|
||||
- cell constructions and deletions done by the TDS only + doc update.
|
||||
|
|
|
|||
|
|
@ -34,6 +34,9 @@ int main()
|
|||
|
||||
#include <CGAL/Delaunay_triangulation_3.h>
|
||||
|
||||
#include <CGAL/Filtered_exact.h>
|
||||
#include <CGAL/MP_Float.h>
|
||||
|
||||
#include <CGAL/IO/Geomview_stream.h>
|
||||
#include <CGAL/IO/Triangulation_geomview_ostream_3.h>
|
||||
|
||||
|
|
@ -42,15 +45,9 @@ int main()
|
|||
#include <unistd.h>
|
||||
#include <list>
|
||||
|
||||
typedef double NT;
|
||||
// for this simple example, using doubles is ok
|
||||
// for more complicated examples with degenerate configurations,
|
||||
// using Filtered_exact number type is advised :
|
||||
//
|
||||
// #include <CGAL/Filtered_Exact.h>
|
||||
// #include <CGAL/MP_Float.h>
|
||||
//
|
||||
// typedef CGAL::Filtered_exact<double, CGAL::MP_Float> NT;
|
||||
|
||||
typedef CGAL::Filtered_exact<double, CGAL::MP_Float> NT;
|
||||
|
||||
typedef CGAL::Cartesian<NT> K;
|
||||
|
||||
|
|
|
|||
|
|
@ -34,6 +34,9 @@ int main()
|
|||
|
||||
#include <CGAL/Delaunay_triangulation_3.h>
|
||||
|
||||
#include <CGAL/Filtered_exact.h>
|
||||
#include <CGAL/MP_Float.h>
|
||||
|
||||
#include <CGAL/IO/Geomview_stream.h>
|
||||
#include <CGAL/IO/Triangulation_geomview_ostream_3.h>
|
||||
|
||||
|
|
@ -62,15 +65,9 @@ public :
|
|||
{}
|
||||
};
|
||||
|
||||
typedef double NT;
|
||||
// for this simple example, using doubles is ok
|
||||
// for more complicated examples with degenerate configurations,
|
||||
// using Filtered_exact number type is advised :
|
||||
//
|
||||
// #include <CGAL/Filtered_exact.h>
|
||||
// #include <CGAL/MP_Float.h>
|
||||
//
|
||||
// typedef CGAL::Filtered_exact<double, CGAL::MP_Float> NT;
|
||||
|
||||
typedef CGAL::Filtered_exact<double, CGAL::MP_Float> NT;
|
||||
|
||||
typedef CGAL::Cartesian<NT> K;
|
||||
|
||||
|
|
|
|||
|
|
@ -34,6 +34,9 @@ int main()
|
|||
|
||||
#include <CGAL/Delaunay_triangulation_3.h>
|
||||
|
||||
#include <CGAL/Filtered_exact.h>
|
||||
#include <CGAL/MP_Float.h>
|
||||
|
||||
#include <CGAL/IO/Geomview_stream.h>
|
||||
#include <CGAL/IO/Triangulation_geomview_ostream_3.h>
|
||||
|
||||
|
|
@ -42,15 +45,9 @@ int main()
|
|||
#include <unistd.h>
|
||||
#include <list>
|
||||
|
||||
typedef double NT;
|
||||
// for this simple example, using doubles is ok
|
||||
// for more complicated examples with degenerate configurations,
|
||||
// using Filtered_exact number type is advised :
|
||||
//
|
||||
// #include <CGAL/Filtered_Exact.h>
|
||||
// #include <CGAL/MP_Float.h>
|
||||
//
|
||||
// typedef CGAL::Filtered_exact<double, CGAL::MP_Float> NT;
|
||||
|
||||
typedef CGAL::Filtered_exact<double, CGAL::MP_Float> NT;
|
||||
|
||||
typedef CGAL::Cartesian<NT> K;
|
||||
|
||||
|
|
|
|||
|
|
@ -2,6 +2,8 @@
|
|||
#include <CGAL/Cartesian.h>
|
||||
|
||||
#include <CGAL/Delaunay_triangulation_3.h>
|
||||
#include <CGAL/Filtered_exact.h>
|
||||
#include <CGAL/MP_Float.h>
|
||||
|
||||
#include <cassert>
|
||||
|
||||
|
|
@ -30,15 +32,9 @@ public :
|
|||
{}
|
||||
};
|
||||
|
||||
typedef double NT;
|
||||
// for this simple example, using doubles is ok
|
||||
// for more complicated examples with degenerate configurations,
|
||||
// using Filtered_exact number type is advised :
|
||||
//
|
||||
// #include <CGAL/Filtered_exact.h>
|
||||
// #include <CGAL/MP_Float.h>
|
||||
//
|
||||
// typedef CGAL::Filtered_exact<double, CGAL::MP_Float> NT;
|
||||
|
||||
typedef CGAL::Filtered_exact<double, CGAL::MP_Float> NT;
|
||||
|
||||
typedef CGAL::Cartesian<NT> K;
|
||||
|
||||
|
|
|
|||
|
|
@ -4,35 +4,20 @@
|
|||
#include <CGAL/Triangulation_data_structure_3.h>
|
||||
#include <CGAL/Delaunay_triangulation_3.h>
|
||||
#include <CGAL/Triangulation_hierarchy_3.h>
|
||||
#include <CGAL/Filtered_exact.h>
|
||||
#include <CGAL/MP_Float.h>
|
||||
|
||||
#include <cassert>
|
||||
#include <vector>
|
||||
|
||||
//////////////////////
|
||||
// chosing the number type
|
||||
//////////////////////
|
||||
|
||||
// for this simple example, using doubles is ok though the points
|
||||
// are in degenerate configutations, since their coordinates
|
||||
// are very small integers
|
||||
// for examples with data stored on a large number of bits,
|
||||
// using Filtered_exact number type is advised :
|
||||
//
|
||||
// #include <CGAL/Filtered_exact.h>
|
||||
// #include <CGAL/MP_Float.h>
|
||||
//
|
||||
// typedef CGAL::Filtered_exact<double, CGAL::MP_Float> NT;
|
||||
|
||||
typedef double NT;
|
||||
typedef CGAL::Filtered_exact<double, CGAL::MP_Float> NT;
|
||||
|
||||
//////////////////////
|
||||
// chosing the representation (cartesian or homogeneous)
|
||||
//////////////////////
|
||||
// chosing the representation (Cartesian or homogeneous)
|
||||
|
||||
typedef CGAL::Cartesian<NT> K;
|
||||
|
||||
//////////////////////
|
||||
|
||||
typedef CGAL::Triangulation_vertex_base_3<K> Vb;
|
||||
typedef CGAL::Triangulation_hierarchy_vertex_base_3<Vb> Vbh;
|
||||
typedef CGAL::Triangulation_cell_base_3<void> Cb;
|
||||
|
|
|
|||
|
|
@ -2,6 +2,8 @@
|
|||
#include <CGAL/Cartesian.h>
|
||||
|
||||
#include <CGAL/Triangulation_3.h>
|
||||
#include <CGAL/Filtered_exact.h>
|
||||
#include <CGAL/MP_Float.h>
|
||||
|
||||
#include <iostream>
|
||||
#include <fstream>
|
||||
|
|
@ -9,29 +11,14 @@
|
|||
#include <list>
|
||||
#include <vector>
|
||||
|
||||
//////////////////////
|
||||
// chosing the number type
|
||||
//////////////////////
|
||||
|
||||
// for this simple example, using doubles is ok
|
||||
// for more complicated examples with degenerate configurations,
|
||||
// using Filtered_exact number type is advised :
|
||||
//
|
||||
// #include <CGAL/Filtered_exact.h>
|
||||
// #include <CGAL/MP_Float.h>
|
||||
//
|
||||
// typedef CGAL::Filtered_exact<double, CGAL::MP_Float> NT;
|
||||
|
||||
typedef double NT;
|
||||
typedef CGAL::Filtered_exact<double, CGAL::MP_Float> NT;
|
||||
|
||||
//////////////////////
|
||||
// chosing the representation (cartesian or homogeneous)
|
||||
//////////////////////
|
||||
// chosing the representation (Cartesian or homogeneous)
|
||||
|
||||
typedef CGAL::Cartesian<NT> K;
|
||||
|
||||
//////////////////////
|
||||
|
||||
typedef CGAL::Triangulation_3<K> Triangulation;
|
||||
|
||||
typedef Triangulation::Cell_handle Cell_handle;
|
||||
|
|
|
|||
Loading…
Reference in New Issue