From 736e677ace5424f52b26d5fa5ccdced7600ed3f1 Mon Sep 17 00:00:00 2001 From: Simon Giraudot Date: Mon, 31 Oct 2016 15:25:08 +0100 Subject: [PATCH] Do not use non-documented function --- .../reconstruction_structured.cpp | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/Advancing_front_surface_reconstruction/examples/Advancing_front_surface_reconstruction/reconstruction_structured.cpp b/Advancing_front_surface_reconstruction/examples/Advancing_front_surface_reconstruction/reconstruction_structured.cpp index 3d63e89ac3f..fd2970be8a5 100644 --- a/Advancing_front_surface_reconstruction/examples/Advancing_front_surface_reconstruction/reconstruction_structured.cpp +++ b/Advancing_front_surface_reconstruction/examples/Advancing_front_surface_reconstruction/reconstruction_structured.cpp @@ -166,7 +166,13 @@ int main (int argc, char* argv[]) std::cerr << "done\nWriting result... "; std::vector output; - CGAL::write_triple_indices (std::back_inserter (output), R); + const typename Reconstruction::TDS_2& tds = R.triangulation_data_structure_2(); + + for(typename Reconstruction::TDS_2::Face_iterator fit = tds.faces_begin(); fit != tds.faces_end(); ++fit) + if(fit->is_on_surface()) + output.push_back (CGAL::make_array(fit->vertex(0)->vertex_3()->id(), + fit->vertex(1)->vertex_3()->id(), + fit->vertex(2)->vertex_3()->id())); std::ofstream f ("out.off"); f << "OFF\n" << structured_pts.size () << " " << output.size() << " 0\n"; // Header