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: Daniel Duque <>
  • To:
  • Subject: Re: [cgal-discuss] how to use triangulation::incident_facets
  • Date: Mon, 4 May 2009 13:50:01 +0200
  • Organization: UPM

Hello,

On Monday 04 May 2009 13:38:35 Andreas Fabri wrote:
> 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.

A. Fabri's point is, "done" is copy-created from "fc" before "fc" points to
anything. Just exchanging two lines of the original work should work (even
though AF's code is more elegant):

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


Best,

Daniel


--
Nueva dirección de e-mail!



Archive powered by MHonArc 2.6.16.

Top of Page