Subject: CGAL users discussion list
List archive
- From: Mael <>
- To:
- Subject: Re: [cgal-discuss] Iteration over Voronoi faces
- Date: Fri, 14 Jun 2019 08:12:01 +0200
- Authentication-results: mail3-smtp-sop.national.inria.fr; spf=None ; spf=None ; spf=None
- Ironport-phdr: 9a23:B3fjjBXKouzpnGAftgUY1+XDmUrV8LGtZVwlr6E/grcLSJyIuqrYbBCFt8tkgFKBZ4jH8fUM07OQ7/m5HzVeud3Q7DgrS99lb1c9k8IYnggtUoauKHbQC7rUVRE8B9lIT1R//nu2YgB/Ecf6YEDO8DXptWZBUhrwOhBoKevrB4Xck9q41/yo+53Ufg5EmCexbal9IRmrsAndrNQajIp+Jqo+zhbErWZDdvhLy29vOV+dhQv36N2q/J5k/SRQuvYh+NBFXK7nYak2TqFWASo/PWwt68LlqRfMTQ2U5nsBSWoWiQZHAxLE7B7hQJj8tDbxu/dn1ymbOc32Sq00WSin4qx2RhLklDsLOjgk+2zRl8d+jr9UoAi5qhJi3YDUboGbOvlwcKzTctwVR3ZOUMlKWixdAI6xdZcDA/YPMOtaqYT2ulsArQG5BQmpHO7hzSVHiWHy3aYn1OkhFBvJ0xIkH94UqnTUq8j1NagMXuCx1qXIyS/MYOhN1jjj84XIfQ4uofaJXb1ubcrR00kuFw3fgVqMtYzlOCmV1+QXv2eH6OpgUPuihmg6oA9/pTivw90jiojPho8N1l/E+j92wIIvKd2/Uk57btipG4ZTuSGCL4Z7TcIvT3t1tComyrAKo5G2cDUQxJg6yBPSauSLfoyU7h75V+ucIC10iGx5dL6inRq/80ytx+vhXceuyllKtDBKktzUu3ANyRPT7s+HR+Ng8ku73DaP0AHe5+JeLUAxj6XbKpohzqc3lpoOrUTPBCj2mFv2jKOMcEUr5PSo5/zmYrXguJCcK5d5hw7/P6g0h8CzHeQ1PhIBUmSG4+iwybLu8EzhTLVPlPI2k63ZsJ7AJcQco660GwpV3Zw95Ba7FTumytMYnWQILV1bfBKLlYzpNEvVL//jE/iymFusnylsx/DDILLhHo/NL3jNkLj7Ybl990lcyBAzzNxF+51UDbQBLOrpWkDtrNzYEgM5Mwuszun7B9VyzIceVXuSDa+YK6PdrUKI5vk0I+SXf48UuDP9K+A/6PL0jH85n0Udfaiz0pcNZnC4BKcuH0LManXlhpINEHwBoxElZO3sklyLFzBJNFioWKdpwzg2DMryCI7OQsa3h6GR0SP9GpRcbG1uBV2LFHr0bZSKUvwQbziDZMRml2pXBvCaV4Y92ET250fBwL19I7+Mo3FKhdfYzNFwotbru1Qq7zUuVpaS3maIQn1uj20BTCMxxrE5qkt4mA/ajPpIxsdAHNkW3MtnFwc3MZmGkr4jTdX1BFKHe96ITBOhX8ngBi8xCNQ8341WOhcvK5CZlhnGmhGSLfoQnr2PCoYz9/iFjXf8IMNw12zX2qAqk148U41EMmj03qM=
Hello,
This is usually the case, if you look at the documentation page of e.g. Regular_triangulation_2, you'll see a section "Additional Inherited Members", which contains exactly what you have in mind (typedefs and functions from Triangulation_2).
Hyperbolic_Delaunay_triangulation_2 (HDT2) is a little bit different because it inherits Delaunay_triangulation_2 (DT2), but in a private way. This is done exactly so that not everything from DT2 is shown in the documentation. This is because the simplicies in a HDT2 form only a subset of the simplices of a DT2. Thus, we are internally building a DT2 and the class HDT2 is just a filter on top of the DT2.
You can use the functions from DT2 (or even T2, which DT2 inherits), but be careful that you will then be working with the full DT2 structure and not the HDT2. You can apply hyperbolic filtering manually via the "is_hyperbolic()" family of functions to bring things back to HDT2.
Best,
Mael
On 13/06/2019 22:15, Stefan Witzel wrote:
Hi,
Sorry about my last question! In case someone is actually wondering:
the answer are face circulators [1]. The documentation would be much
more accessible if one could see all the inherited methods somewhere.
I was looking at the documentation for
Hyperbolic_Delaunay_triangulation_2 and from there it's a bit of a way
down to Triangulation_2, especially when you are wondering about the
traits and data structures along the way.
Best,
Stefan
[1]
https://doc.cgal.org/latest/Triangulation_2/classCGAL_1_1Triangulation__2.html#a1bda2ab92ccf638bb22fc223ae281b96
Am Do., 13. Juni 2019 um 16:32 Uhr schrieb Stefan Witzel
<>:
Hello,
I do not have any previous experience with cgal and my question is a
rather conceptual one without much technical insight: I would like to
iterate over the faces of a Voronoi diagram and then over the edges of
each face (to obtain a closed polygon); in other words this means to
iterate over the vertices of a Delaunay triangulation and then over
the edges incident with this vertex. Am I right to assume that this is
fundamentally problematic with the default parameters for
Delaunay_triangulation_2 (Triangulation_vertex_base_2,
Triangulation_face_base_2) as a vertex does not ``know'' the edges it
is incident with? Is there a kind of dual assignment that I could use
(like ``(Tessellation_face_base, Tessellation_vertex_base)'')?
Since tessellations into non-triangles may be more complicated, would
it be a possibility to first produce the (common) barycentric
subdivision?
Best,
Stefan
- [cgal-discuss] Iteration over Voronoi faces, Stefan Witzel, 06/13/2019
- Re: [cgal-discuss] Iteration over Voronoi faces, Stefan Witzel, 06/13/2019
- Re: [cgal-discuss] Iteration over Voronoi faces, Mael, 06/14/2019
- Re: [cgal-discuss] Iteration over Voronoi faces, Stefan Witzel, 06/14/2019
- Re: [cgal-discuss] Iteration over Voronoi faces, Stefan Witzel, 06/14/2019
- Re: [cgal-discuss] Iteration over Voronoi faces, Stefan Witzel, 06/14/2019
- Re: [cgal-discuss] Iteration over Voronoi faces, Mael, 06/17/2019
- Re: [cgal-discuss] Iteration over Voronoi faces, Monique Teillaud, 06/17/2019
- Re: [cgal-discuss] Iteration over Voronoi faces, Stefan Witzel, 06/17/2019
- Re: [cgal-discuss] Iteration over Voronoi faces, Mael, 06/18/2019
- Re: [cgal-discuss] Iteration over Voronoi faces, Stefan Witzel, 06/18/2019
- Re: [cgal-discuss] Iteration over Voronoi faces, Monique Teillaud, 06/18/2019
- Re: [cgal-discuss] Iteration over Voronoi faces, Stefan Witzel, 06/18/2019
- Re: [cgal-discuss] Iteration over Voronoi faces, Stefan Witzel, 06/14/2019
- Re: [cgal-discuss] Iteration over Voronoi faces, Stefan Witzel, 06/14/2019
- Re: [cgal-discuss] Iteration over Voronoi faces, Stefan Witzel, 06/14/2019
- Re: [cgal-discuss] Iteration over Voronoi faces, Mael, 06/14/2019
- Re: [cgal-discuss] Iteration over Voronoi faces, Stefan Witzel, 06/13/2019
Archive powered by MHonArc 2.6.18.