Do not use non-documented function

This commit is contained in:
Simon Giraudot 2016-10-31 15:25:08 +01:00
parent 0df67413eb
commit 736e677ace
1 changed files with 7 additions and 1 deletions

View File

@ -166,7 +166,13 @@ int main (int argc, char* argv[])
std::cerr << "done\nWriting result... ";
std::vector<Facet> 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