Skip to Content.
Sympa Menu

cgal-discuss - Re: [cgal-discuss] How to Iterate over each face in DT3 and the get the vertices?

Subject: CGAL users discussion list

List archive

Re: [cgal-discuss] How to Iterate over each face in DT3 and the get the vertices?


Chronological Thread 
  • From: MaelRL <>
  • To:
  • Subject: Re: [cgal-discuss] How to Iterate over each face in DT3 and the get the vertices?
  • Date: Fri, 17 Nov 2017 02:21:14 -0700 (MST)
  • Authentication-results: mail2-smtp-roc.national.inria.fr; spf=None ; spf=None ; spf=Pass
  • Ironport-phdr: 9a23:hG58wxHTTQ0fTdZ7f/FlJZ1GYnF86YWxBRYc798ds5kLTJ76oM2wAkXT6L1XgUPTWs2DsrQf1LqQ7viocFdDyKjCmUhKSIZLWR4BhJdetC0bK+nBN3fGKuX3ZTcxBsVIWQwt1Xi6NU9IBJS2PAWK8TXhpQIVTx7wPA4wKuXuEZPJlOy20fqz8tvdeVZmnj24NJZ7IRGMiU2Fs8Abhc14Lbshxx+PpnJCcel+ym5vIF+PhQfy78ys+4RytS9XvqRypIZ7TazmcvFgHvRjBzM8PjVt6Q==

Hello,

A triangulation facet "f" is a pair of a Cell_handle "ch" (= f.first) and an
index "i" (= f.second) that is such that ch->vertex(i) is the opposite
vertex of "f" in "ch". Thus, you can get the three vertices of your facet
with:
f.first->vertex((f.second+1)%4)
f.first->vertex((f.second+2)%4)
f.first->vertex((f.second+3)%4)

Then, by default a triangulation vertex does not contain a global index in
the triangulation, so you must either build a map<Point_3, index> or use
vertex_with_info
(https://doc.cgal.org/latest/Triangulation_3/classCGAL_1_1Triangulation__vertex__base__with__info__3.html)
and fill the map / info as you insert in the triangulation.



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



Archive powered by MHonArc 2.6.18.

Top of Page