Skip to Content.
Sympa Menu

cgal-discuss - [cgal-discuss] Re: Vertex circulator starting at fixed vertex

Subject: CGAL users discussion list

List archive

[cgal-discuss] Re: Vertex circulator starting at fixed vertex


Chronological Thread 
  • From: Tapadi <>
  • To:
  • Subject: [cgal-discuss] Re: Vertex circulator starting at fixed vertex
  • Date: Fri, 8 Mar 2013 07:05:14 -0800 (PST)

Hi,

I already encountered this kind of problems using vertex iteration over CGAL
Polyhedrons (in Mepp project). My near-newbie opinion after having worked on
this topic is :

- Handles and Circulators point both at samely-typed objects (vertices for
examples), so you may be able to compare them writing (*vc==*ne) instead of
(vc==ne).

- However, Handles and Circulators are not themselves objects of same
nature. I went to the conclusion that a Circulator is a special Iterator
with the additional property that the "next" member of the last item in a
Circulator is actually also the first item of the same Circulator, while it
is not true for any Iterator or Handle. Thus, I was able to cast Circulators
into less-specific Handles, but not reversely, as you noticed too. This must
be the same reason that you cannot compare directly Circulators and Handles
as (vc==ne) in your example.

Since I use CGAL without being an expert, please wait for a more skillful
member's help for a definitive answer. I would also be glad to know if my
own answer is correct or not.

Best regards,
Hugo Loi
PhD student at Inria - Maverick Team
http://maverick.inria.fr/



--
View this message in context:
http://cgal-discuss.949826.n4.nabble.com/Vertex-circulator-starting-at-fixed-vertex-tp4656861p4656862.html
Sent from the cgal-discuss mailing list archive at Nabble.com.



Archive powered by MHonArc 2.6.18.

Top of Page