Skip to Content.
Sympa Menu

cgal-discuss - Re: [cgal-discuss] Face around vertex circulator

Subject: CGAL users discussion list

List archive

Re: [cgal-discuss] Face around vertex circulator


Chronological Thread 
  • From: Luca Gagliano <>
  • To:
  • Subject: Re: [cgal-discuss] Face around vertex circulator
  • Date: Tue, 7 Nov 2017 11:20:04 +0000
  • Authentication-results: mail3-smtp-sop.national.inria.fr; spf=None ; spf=Pass ; spf=None
  • Ironport-phdr: 9a23:Rb0ywxGBNc17P9fEGZdKBp1GYnF86YWxBRYc798ds5kLTJ75pc6wAkXT6L1XgUPTWs2DsrQf1LqQ7viocFdDyKjCmUhKSIZLWR4BhJdetC0bK+nBN3fGKuX3ZTcxBsVIWQwt1Xi6NU9IBJS2PAWK8TXhpQMUAQj1YAppOvzuSMmVlNWyz+n0+pvJYgwOiiD6eqJ3NBzxrAPfsY4djoJmb6ow0RDUuWAbR+MDzmxhIRefng33+9yr1J9l6SVZ/fw7pOBaVqCvW7kzRPR3BTsiMmkz44W/sQTIRE2A73QYU2wQlVwRUliVxB7/V5b19CD9s7wui2GhIcTqQOVsCnyZ5KBxRUqwhQ==

Hi,

Can I use the "SurfaceMesh" type instead of a graph?
I haven't entirely clear what's the relationship between the SurfaceMesh and the DCEL data structure, therefore I'm not entirely sure what methods I can reuse given a certain class.

Thank you

On 7 November 2017 at 10:55, MaelRL <> wrote:
For the first question, you can find an example of use in test_circulator.cpp
:
https://github.com/CGAL/cgal/blob/master/BGL/test/BGL/test_circulator.cpp#L87

Below is the same file in a branch that is not integrated yet, where the use
of that function is more detailed:
https://github.com/CGAL/cgal-public-dev/blob/Motorcycle_graph-GF/BGL/test/BGL/test_circulator.cpp#L117

For the second question, you can use halfedge(v1, v2, graph), which returns
a pair of an halfedge_descriptor and boolean (to indicate whether the
halfedge exists or not). Once you have the halfedge, you can grab the faces
through, face(h, graph), and using opposite(h, graph).
See
https://doc.cgal.org/latest/BGL/classHalfedgeGraph.html#a965f1ed3f109080edd516222b273426c.



--
Sent from: http://cgal-discuss.949826.n4.nabble.com/

--
You are currently subscribed to cgal-discuss.
To unsubscribe or access the archives, go to
https://sympa.inria.fr/sympa/info/cgal-discuss






Archive powered by MHonArc 2.6.18.

Top of Page