mirror of https://github.com/CGAL/cgal
Do not use non-documented function
This commit is contained in:
parent
0df67413eb
commit
736e677ace
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Reference in New Issue