Subject: CGAL users discussion list
List archive
Re: [cgal-discuss] Inserting 2D power diagram from 2D triangulation into arrangement.
Chronological Thread
- From: Efi Fogel <>
- To:
- Subject: Re: [cgal-discuss] Inserting 2D power diagram from 2D triangulation into arrangement.
- Date: Thu, 9 Dec 2021 11:15:03 +0200
- Authentication-results: mail2-smtp-roc.national.inria.fr; spf=None ; spf=Pass ; spf=None
- Ironport-data: A9a23:+kR0d6nYkVgdlmWtM+q1aITo5gzjJ0RdPkR7XQ2eYbTBsI5bpzEExjFOCGGAb/uDZTD8e48jPYi2/UID65LTxt5qSgdl3Hw8FHgiRejtVY3IdB+oV8+xBpSeFxw/t512huEtnanYd1eEzvuWGuWn/SkUOZ2gHOKmUbeeYnEpH2eIdQ944f5ds75h6mJXqYPha++9kYuaT/z3YDdJ6RYsWo4nw/7rRCdUgRjHkGhwUmrSyhx8lAS2e3E9VPrzLEwqRpfyatE88uWSH44vwFwll1418SvBCvv9+lr6WkgDQ7qXIg3Xz3QKB+6thR9NoiF02aE+XBYeQR0P2nPZwpYokoUL6cDYpQQBZsUgnMwQXRhWFC5zOYVJ/bbGJT60tsn7I0juIiW3kqw3XCnaOqVBorotaY1UztQTJzkJKxyCnOmr26mTUfhpns1lLc/xPYpZtGsI8N1zJeJ+FMqFHLGTsIcehCNq05gIR6ePPt5CPGIpMQCfNjRRHnwSLL4+uMahoEXlVwNZjUbM/f9spzGL2GSdy5DoOdvRP8OPHIBbwhreqWXB8GD0RBodMbSiJfO+2irErofycenTAer+1YFU98KGRHWWz20XTQITDB61/aX/hUm5VNZSbUcT/0LCaIBaGFODFrHAs9+Q+RZofSLwn/JfFuQ77EeGza+8D8OxGD0fVjAYADA5nJZeeNHpv2NlW/vmADVutPueTnf1GnK8xd+tEXB9EFLurhPogefIDxcPbW3zYt/yog5fLZOI
- Ironport-hdrordr: A9a23:8kM+SK/hXkikfGX0m9Fuk+F2db1zdoMgy1knxilNoENuH/BwxvrFoB1E73TJYW4qKQkdcdDpAtjifZquz+8P3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ejizSFHhnH33a001OQhHh/J3Ag7EtIBtXTbttT1NKMIXe+py6nIyCzOYvVL0jjy9IbGaAouoe2QXb1ua8rRz1EiGgHbglmOqYHoIzyb2+sCvmaV8eZtV+yhhW4kpgx1rTWj28chh4jJiIwVy13K9Tl1zokoKdC4SEN1bsKpHYdfuiycKoB4TMQiQ2RytyY7zL0LoZ+7fC4QyJQm3RHTcfKHc5KO7xn+V+iROS91iGx5dL+7nRq/8kitxvfhWsWq01tGtCVIn9bKu3sQzRLc8NKHReF4/kq52TaAyQTT6uZcLEAxj6XbKpohzqc+l5oWrEjPByH2lUr5gaOMeUUk/e+o6+vjYrr4vJOTK4h0igTmPqQvnMywH/g4PxAQU2SH/emwzr7u8E3jTLlXkPE7kbPVvZ/VKMgDo662GQ5V0oIt6xalCDem1cwVkmcJLFJEdhKHiIfpNE/KIP3jAve/hk6jkDZvx/zcIrLhBZDNImDZkLj9ZbZ991JcyA0rwN9D6JJbELUBLOvuVU/wr9zXEgI5Mxevw+v8E9V81oYeWXqVDaODMaPSt0WI5uM1LOWWao8VomW1Fv4++vS7jWMlgURPOu6yzJ4PYTa5GO5nKgOXez33k9IZGCALuAQ5C+flgVnHXT9IbGupRPEB4ComAqK6CIOWRpyxmKfTm2CgD5hObyZHDEqNGDHmbcKfSvIUYWWTJMFm1TcLXLzkR4463gy1r1zHzaF6JNbZ6jFNtY7/zMMnoKrIhBQq/Hp1Cd6c2ieDVSZvj2YQTng32q545kdyw1PG3aljiOFDDo9v4KZCXQ4+cJLd1OdnEMvaWwTbf97PRkz1bM+hBGQcQNN57dgBbkI1T9isjx7E0CeuK7AQnr2PQpcz9/SPjDDKO89hxiOeh+EahF48T54XXYVHrqt29gyWGIuQ1kvFy+ClcqMT2COL/2CGnzLmVK5wXwt5UKGDVncaNBK+RTHR6UbLTrvoArMiYFMp9A==
Hi Marc,
The most efficient way to construct an arrangement is to use the special insertion functions that are members of the Arrangement_2 (or Arrangement_on_surface_2) class template, namely:
- Arrangement_2::insert_in_face_interior(),
- Arrangement_2::insert_from_left_vertex(),
- Arrangement_2::insert_from_right_vertex(), and
- Arrangement_2::insert_at_vertices()
These functions require information in addition to the curve pr point being inserted and they also return information that can be used in insertion operations that follow.
The information is typically one or more handles to cells (e.g., vertex, halfedge, or face) of the arrangement.
You need to attach properties to the triangulation cells.
For example, attach an arrangement handle to a vertex to the vertex of the triangulation.
Then, you can set this property when the arrangement vertex is constructed and use it later on.
Good luck,
Efi
____ _ ____ _
/_____/_) o /__________ __ //
(____ ( ( ( (_/ (_/-(-'_(/
_/
/_____/_) o /__________ __ //
(____ ( ( ( (_/ (_/-(-'_(/
_/
On Tue, 7 Dec 2021 at 11:56, Marc Alexa <> wrote:
Dear all,
what is the most convenient / most efficient way to insert the power diagram implicitly stored in a 2D regular triangulation into an arrangement? I imagine that using the Voronoi adaptor there are some 3 lines of magic code and all is done - but I don’t see how to do it. If there is existing code for that somewhere, any pointer would be appreciated.
Thanks!
-Marc
--
You are currently subscribed to cgal-discuss.
To unsubscribe or access the archives, go to
https://sympa.inria.fr/sympa/info/cgal-discuss
- [cgal-discuss] Inserting 2D power diagram from 2D triangulation into arrangement., Marc Alexa, 12/07/2021
- Re: [cgal-discuss] Inserting 2D power diagram from 2D triangulation into arrangement., Efi Fogel, 12/09/2021
Archive powered by MHonArc 2.6.19+.