Subject: CGAL users discussion list
List archive
- From: Jiongxin Jin <>
- To:
- Subject: Re: [cgal-discuss] Can I get handle out of an iterator/circulator?
- Date: Sun, 21 Mar 2010 03:40:04 +0800
- Domainkey-signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:sender:in-reply-to:references:date :x-google-sender-auth:message-id:subject:from:to:content-type :content-transfer-encoding; b=oHX816WJ2BB9Q7oxyH+TX8L1xD6hlprweZgUfF+s6+HRHrQYwfzEkvHAgmHyQ1cxaG MroR1jsmX6yk7xVVOslyvUJbxHumZw8MMrOBBs2eFoAik0FSnlAkBahk4NJCUVyaq8Xy CnNfBdSLhSz+NoZeQGr6ciN4lK7Wn/HtNG0yw=
Thank you for your clarification, Laurent.
Actually, that is exactly what I did after reading the source code a bit.
Just because I cannot find any document, I am not sure whether it is
the correct way to do.
(For example, future versions of CGAL may change the implementation of
handles.)
Now I think I just cast them to handles anyway. :)
Regards,
James
On Sun, Mar 21, 2010 at 2:47 AM, Laurent Rineau (GeometryFactory)
<>
wrote:
> 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/
>
> --
> You are currently subscribed to cgal-discuss.
> To unsubscribe or access the archives, go to
> https://lists-sop.inria.fr/wws/info/cgal-discuss
>
>
>
- [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.