Skip to Content.
Sympa Menu

cgal-discuss - Re: [cgal-discuss] Can I get handle out of an iterator/circulator?

Subject: CGAL users discussion list

List archive

Re: [cgal-discuss] Can I get handle out of an iterator/circulator?


Chronological Thread 
  • From: "Laurent Rineau (GeometryFactory)" <>
  • To:
  • Subject: Re: [cgal-discuss] Can I get handle out of an iterator/circulator?
  • Date: Sat, 20 Mar 2010 19:47:10 +0100
  • Organization: GeometryFactory

Le Samedi 20 Mars 2010 16:29:15, J. Jin a écrit :
> Dear all,
>
> I want to know whether there is a general way to convert an
> iterator/circulator to a handle.

Most CGAL iterators/circulators type are castable to the corresponding handle
implicitly.

> 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.

You can use circulators and iterators as if they were handles.

--
Laurent Rineau, PhD
Release Manager of the CGAL Project http://www.cgal.org/
R&D Engineer at GeometryFactory http://www.geometryfactory.com/



Archive powered by MHonArc 2.6.16.

Top of Page