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: Andreas Fabri <>
  • To:
  • Subject: Re: [cgal-discuss] how to use triangulation::incident_facets
  • Date: Mon, 04 May 2009 13:38:35 +0200


Well, you compared to a kind of null pointer, and you can circulate
around as long as you want fc will never be equal to a null pointer.

andreas

Nizar Khalifa Sallem wrote:
Thanks,
That seems to solve my problem, although I don't really understand the difference between creation then initialization and combined creation, initialisation :)
Anyway thanks a lot

--
Nizar SALLEM
Robotics and Artificial Intelligence PhD student
LAAS-CNRS
7, Avenue Colonel Roche
31077 Toulouse CEDEX 4
FRANCE




On May 4, 2009, at 9:36 AM, Olivier Devillers wrote:


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);
===============================

--
You are currently subscribed to cgal-discuss.
To unsubscribe or access the archives, go to
https://lists-sop.inria.fr/wws/info/cgal-discuss





Archive powered by MHonArc 2.6.16.

Top of Page