Skip to Content.
Sympa Menu

cgal-discuss - Re: [cgal-discuss] Facets_iterator

Subject: CGAL users discussion list

List archive

Re: [cgal-discuss] Facets_iterator


Chronological Thread 
  • From: Manuel Caroli <>
  • To:
  • Subject: Re: [cgal-discuss] Facets_iterator
  • Date: Mon, 06 Oct 2008 15:16:08 +0200

Hi Dennis,

are you actually talking about Triangulation_2 or Triangulation_3.
In case of Triangulation_2 you should forget about my previous answer and just try it->vertex(i)->point() to extract coordinates.

Otherwise:

I tried your Solution and found out that it->second isn“t always 3 what
I would expect if I triangulate my face before. Sometimes I got sth.
like 0,1,2,3,3,0 for a face.
Why exactly do you expect it->second to be always 3? This is only the case if your triangulation has degenerate dimension 2. And what face are you talking about?

So I looked in the manual but didn`t find a explanation for this.
Perhaps it might be helpful if you could provide more details about your data set.

Can you give me a short explanation?
- it->first gives you a cell to which the facet in question is incident.
- it->second gives you the index of the vertex of this cell that is opposite to the facet in question, i.e. the only vertex that is not contained in the facet you are asking for.

Best

Manuel



Archive powered by MHonArc 2.6.16.

Top of Page