Skip to Content.
Sympa Menu

cgal-discuss - Re: [cgal-discuss] how to use triangulation::incident_facets

Subject: CGAL users discussion list

List archive

Re: [cgal-discuss] how to use triangulation::incident_facets


Chronological Thread 
  • From: Olivier Devillers <>
  • To:
  • Subject: Re: [cgal-discuss] how to use triangulation::incident_facets
  • Date: Mon, 04 May 2009 09:36:03 +0200


a écrit :
Hi,

I am looking for an example on how to use incident_facets to traverse the
incident facets of an edge.
I have done this (I don't eally remember where I saw it) but it seems to
enter an infinite loop :
===============================
Facet_circulator fc;
Facet_circulator done(fc);
fc = D.incident_facets(m_edge);
do{
if (!D.is_infinite(*fc)){
//do something
};
}while (++fc != done);
===============================
thanks in advance.


try this :

===============================
Facet_circulator fc= D.incident_facets(m_edge);
Facet_circulator done(fc);
do{
if (!D.is_infinite(*fc)){
//do something
};
}while (++fc != done);
===============================




Archive powered by MHonArc 2.6.16.

Top of Page