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 13:28:25 +0200

Hi Dennis,

Dennis Endt wrote:
Thanks for you help, I foudn a solution with

Triangulation T;

for(Triangulation::Finite_facets_iterator it = T.finite_facets_begin();
it != T.finite_facets_end(); it++)
{
T.triangle(*it).vertex(i)
}
That's not the best solution. Actually you create a triangle just to extract a point. Be aware that 'it' is a pointer to a (cell,int) pair. So the coordinates of the points can be accessed by it->first->vertex(i)->point() with i != it->second.

I vaguely remember having answered a similar question on this list before in more detail. The idea should also become clear from the manual.

best

Manuel



Archive powered by MHonArc 2.6.16.

Top of Page