Subject: CGAL users discussion list
List archive
- From: DANIEL DUQUE CAMPAYO <>
- To: <>
- Subject: [cgal-discuss] Vertex circulator starting at fixed vertex
- Date: Fri, 08 Mar 2013 15:49:33 +0100
- Organization: Universidad Politécnica de Madrid
Hi everyone,
I am having trouble starting vertex circulators
at some determined vertex. I have implemented
a vertex class that contains a handle to another vertex,
exactly as described in [1]. This handle points to
an incident vertex. Now, it would be convenient for me
to just do:
Vertex_circulator vc= v0->get_ne(),
done(vc);
instead of the usual
Vertex_circulator vc= T.incident_vertices(v0),
done(vc);
[The class function get_ne() returns v0's handle.]
Now, that does not seem to work (it does compile). Probably casting from
a vertex circulator to a handle is ok, but the reverse is not.
My next trial was to circulate in order to find the right vertex:
Vertex_circulator vc= T.incident_vertices(v0),
done(vc);
Vertex_handle ne=v0->get_ne();
// // Advance circulator to coincide with ne
do{
if(vc==ne) break;
} while (++vc!=done);
But this also seems to fail (it also compiles). Is it also wrong to compare vertex
handles and vertex circulators with ==? Am I missing some *'s or &'s?
Thanks. Best,
Daniel
[1] http://www.cgal.org/Manual/latest/examples/Triangulation_2/adding_handles.cpp
--
DANIEL DUQUE CAMPAYO
Universidad Politecnica de Madrid
- [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.