Skip to Content.
Sympa Menu

cgal-discuss - [cgal-discuss] Getting facet indexes from polyhedron_3

Subject: CGAL users discussion list

List archive

[cgal-discuss] Getting facet indexes from polyhedron_3


Chronological Thread 
  • From: <>
  • To:
  • Subject: [cgal-discuss] Getting facet indexes from polyhedron_3
  • Date: Thu, 12 Apr 2012 23:50:22 +0200 (CEST)

Hi!

I have a Polyhedron_3 object and i would like to get the 3 vertex-index of
facet.
Basically what i want is a list of indexes which is exactly the same as the
2nd
part of an .off model.

How can i do that?
I tried:

for ( Facet_const_iterator i = Poly.facets_begin(); i != Poly.facets_end();
++i)
{
cout << i->plane() << endl;
}

but it only prints out for zeros a line.

Thank you very much in advance!

Sincerely,

Zoli



Archive powered by MHonArc 2.6.16.

Top of Page