Subject: CGAL users discussion list
List archive
- 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 :That would work only with exact constructions. Otherwise one should refine "==" as "close enough".
if ( vc->handle()->point() == ne->point() ) { ...
Thanks everyone.
Daniel
- [cgal-discuss] Vertex circulator starting at fixed vertex, DANIEL DUQUE CAMPAYO, 03/08/2013
- [cgal-discuss] Re: Vertex circulator starting at fixed vertex, Tapadi, 03/08/2013
- Re: [cgal-discuss] Re: Vertex circulator starting at fixed vertex, Daniel Duque, 03/08/2013
- [cgal-discuss] Re: Vertex circulator starting at fixed vertex, Tapadi, 03/08/2013
- Re: [cgal-discuss] Re: Vertex circulator starting at fixed vertex, Daniel Duque, 03/09/2013
- [cgal-discuss] Re: Vertex circulator starting at fixed vertex, Tapadi, 03/08/2013
- Re: [cgal-discuss] Re: Vertex circulator starting at fixed vertex, Daniel Duque, 03/08/2013
- Re: [cgal-discuss] Vertex circulator starting at fixed vertex, Olivier Devillers, 03/20/2013
- [cgal-discuss] Re: Vertex circulator starting at fixed vertex, Tapadi, 03/08/2013
Archive powered by MHonArc 2.6.18.