Skip to Content.
Sympa Menu

cgal-discuss - [cgal-discuss] indices of faces, halfedges, vertices

Subject: CGAL users discussion list

List archive

[cgal-discuss] indices of faces, halfedges, vertices


Chronological Thread 
  • From:
  • To:
  • Subject: [cgal-discuss] indices of faces, halfedges, vertices
  • Date: Tue, 27 Apr 2010 11:38:46 +0200

I have a polyhedron P.
And I want to associate to each face an index : the distance from
P->facets_begin() to the iterator pointing to the face (for example).

Now, given a halfedge h, I would like to know the number of h.facets().
I tried std::distance(P.facets_begin(), h.facets()) but it doesn't work
since one is an iterator and the other a handle.

Is there a simple way to do that ?



Archive powered by MHonArc 2.6.16.

Top of Page