From 9fe31d876e16d1f73697f41dfae38df86bd8fd1a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?S=C3=A9bastien=20Loriot?= Date: Thu, 9 Sep 2021 17:47:38 +0200 Subject: [PATCH] write polyhedron before doing any check --- .../conforming-Delaunay_3.cpp | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/Reconstruction_parallel_slices_3/examples/Reconstruction_parallel_slices_3/conforming-Delaunay_3.cpp b/Reconstruction_parallel_slices_3/examples/Reconstruction_parallel_slices_3/conforming-Delaunay_3.cpp index 3e7f5b02ee3..ca4a0a1f90e 100644 --- a/Reconstruction_parallel_slices_3/examples/Reconstruction_parallel_slices_3/conforming-Delaunay_3.cpp +++ b/Reconstruction_parallel_slices_3/examples/Reconstruction_parallel_slices_3/conforming-Delaunay_3.cpp @@ -1,4 +1,4 @@ -#define CGAL_RECONSTRUCTION_FROM_PARALLEL_SLICES_3_DEBUG +// #define CGAL_RECONSTRUCTION_FROM_PARALLEL_SLICES_3_DEBUG //#define CGAL_ALLOW_NON_MANIFOLD_INPUT #include @@ -125,14 +125,15 @@ int main(int argc, char* argv[]) #ifndef CGAL_ALLOW_NON_MANIFOLD_INPUT std::ofstream fout("graph.off"); + fout << polyhedron; + fout.close(); + std::cout << "graph.off written" << std::endl; if ( !polyhedron.is_closed() ){ std::cout << "The polyhedron is not closed" << std::endl; polyhedron.normalize_border(); for (Polyhedron::Edge_iterator eit=polyhedron.border_edges_begin(),eit_end=polyhedron.edges_end();eit!=eit_end;++eit) std::cout << eit->vertex()->point() << " " << eit->opposite()->vertex()->point() << std::endl; } - fout << polyhedron; - fout.close(); //check that there is not degenerate triangles int degen_triangle=0;