diff --git a/Packages/Triangulation_3/examples/Triangulation_3/README b/Packages/Triangulation_3/examples/Triangulation_3/README new file mode 100644 index 00000000000..a4436f13528 --- /dev/null +++ b/Packages/Triangulation_3/examples/Triangulation_3/README @@ -0,0 +1,10 @@ +------- example1 ------------------------------------------------- +Construction of a triangulation. + +Makes different tests on it. + +Writes the triangulation into a file "output" + +This example program uses "doubles". +For a robust version, another arithmetic should be used. +-------------------------------------------------------------- diff --git a/Packages/Triangulation_3/examples/Triangulation_3/example1.C b/Packages/Triangulation_3/examples/Triangulation_3/example1.C index d5101b04832..4a052713c12 100644 --- a/Packages/Triangulation_3/examples/Triangulation_3/example1.C +++ b/Packages/Triangulation_3/examples/Triangulation_3/example1.C @@ -52,22 +52,12 @@ typedef CGAL::Triangulation_cell_base_3 Cb; typedef CGAL::Triangulation_data_structure_3 TDS; typedef CGAL::Triangulation_3 Triangulation; -//typedef CGAL::Delaunay_triangulation_3 Delaunay; -//typedef CGAL::Triangulation_vertex_iterator_3 Vertex_iterator; -//typedef CGAL::Triangulation_edge_iterator_3 Edge_iterator; -//typedef CGAL::Triangulation_cell_iterator_3 Cell_iterator; -//typedef CGAL::Triangulation_facet_iterator_3 Facet_iterator; -//typedef CGAL::Triangulation_cell_circulator_3 Cell_circulator; - -//typedef typename Triangulation::Cell Cell; -//typedef typename Triangulation::Vertex Vertex; typedef typename Triangulation::Cell_handle Cell_handle; typedef typename Triangulation::Vertex_handle Vertex_handle; typedef typename Triangulation::Locate_type Locate_type; typedef Gt::Point Point; -//typedef CGAL::Point_3 Point; int main(int argc, char* argv[]) { @@ -91,7 +81,6 @@ int main(int argc, char* argv[]) n = n + T.insert(V.begin(), V.end()); // 6 points have been inserted : - // CGAL::CGAL_triangulation_assertion( n == 6 ); assert( n == 6 ); // checking validity of T : @@ -114,7 +103,7 @@ int main(int argc, char* argv[]) assert( nc->has_vertex( v, nli ) ); // nli is the index of v in nc - std::ofstream oFileT("data/output",ios::out); + std::ofstream oFileT("output",ios::out); // writing file data/output; oFileT << T;