Subject: CGAL users discussion list
List archive
- From: Karl Gaize <>
- To:
- Subject: Re: [cgal-discuss] Can I get handle out of an iterator/circulator?
- Date: Sat, 20 Mar 2010 17:55:38 +0000
All iterator/circulator classes have pointer de-reference operators IIRC, you should just be able to:
vertex_iterator *iter = vertices_begin();
vertex_handle hVertex = *iter;
Vic
J. Jin wrote:
Dear all,
I want to know whether there is a general way to convert an
iterator/circulator to a handle.
Consider the following example.
I want to traverse in a mesh with type Triangulation_data_structure_2 for
some vertex in a breadth first search manner.
I start with a vertex(suppose I have its handle), so I can use circulators
to check all its neighbors.
But... here is the problem. How can I continue?
The method incident_vertices needs an input of type Vertex_handle, but what
I got is of type Vertex_circulator.
So what is the right way to do?
Any suggestions are appreciated.
James
- [cgal-discuss] Can I get handle out of an iterator/circulator?, J. Jin, 03/20/2010
- Re: [cgal-discuss] Can I get handle out of an iterator/circulator?, Karl Gaize, 03/20/2010
- Re: [cgal-discuss] Can I get handle out of an iterator/circulator?, Karl Gaize, 03/20/2010
- Re: [cgal-discuss] Can I get handle out of an iterator/circulator?, Laurent Rineau (GeometryFactory), 03/20/2010
- Re: [cgal-discuss] Can I get handle out of an iterator/circulator?, Jiongxin Jin, 03/20/2010
- Re: [cgal-discuss] Can I get handle out of an iterator/circulator?, Laurent Rineau (GeometryFactory), 03/21/2010
- Re: [cgal-discuss] Can I get handle out of an iterator/circulator?, Jiongxin Jin, 03/21/2010
- Re: [cgal-discuss] Can I get handle out of an iterator/circulator?, Laurent Rineau (GeometryFactory), 03/21/2010
- Re: [cgal-discuss] Can I get handle out of an iterator/circulator?, Jiongxin Jin, 03/20/2010
- Re: [cgal-discuss] Can I get handle out of an iterator/circulator?, Karl Gaize, 03/20/2010
Archive powered by MHonArc 2.6.16.