Skip to Content.
Sympa Menu

cgal-discuss - Re: [cgal-discuss] Re: Vertex circulator starting at fixed vertex

Subject: CGAL users discussion list

List archive

Re: [cgal-discuss] Re: Vertex circulator starting at fixed vertex


Chronological Thread 
  • From: Daniel Duque <>
  • To:
  • Subject: Re: [cgal-discuss] Re: Vertex circulator starting at fixed vertex
  • Date: Sat, 09 Mar 2013 10:53:29 +0100

Hello,

My bad, upon simplifying my code I am sure both ( vc->handle() == ne ), and (vc==ne) work.

Still, one cannot type vc=ne simply to start a circulator whenever one wants. The code would rather be something like:

Vertex_circulator vc=T.incident_vertices(v0),
done(vc);

if(v0->connected()) {

Vertex_handle ne=v0->get_ne();

// vc=ne; //// No! rather advance circulator to coincide with ne

do{
if( vc == ne) break;
} while (++vc!=done);
done=vc;
}


There is a nasty way to do the comparison, waiting for a better solution :

if ( vc->handle()->point() == ne->point() ) { ...

That would work only with exact constructions. Otherwise one should refine "==" as "close enough".

Thanks everyone.

Daniel




Archive powered by MHonArc 2.6.18.

Top of Page