Subject: CGAL users discussion list
List archive
- From: "Laurent Rineau (CGAL/GeometryFactory)" <>
- To:
- Subject: Re: [cgal-discuss] Edge to constraint relationship
- Date: Wed, 17 Oct 2018 17:40:43 +0200
- Authentication-results: mail2-smtp-roc.national.inria.fr; spf=None ; spf=SoftFail ; spf=None
- Ironport-phdr: 9a23:xeHqgxLd+q/b5n3GYdmcpTZWNBhigK39O0sv0rFitYgeIv3xwZ3uMQTl6Ol3ixeRBMOHs60C07KempujcFRI2YyGvnEGfc4EfD4+ouJSoTYdBtWYA1bwNv/gYn9yNs1DUFh44yPzahANS47xaFLIv3K98yMZFAnhOgppPOT1HZPZg9iq2+yo9JDffwdFiCChbb9uMR67sRjfus4KjIV4N60/0AHJonxGe+RXwWNnO1eelAvi68mz4ZBu7T1et+ou+MBcX6r6eb84TaFDAzQ9L281/szrugLdQgaJ+3ART38ZkhtMAwjC8RH6QpL8uTb0u+ZhxCWXO9D9QLYpUjqg8qhrUgflhicZOTAk/m/Zictwg6BVoB2uqBJw35XZYJ2IOvdkYq/RYc8WSXRHU81MVyJBGIS8b44XAuYPO+hXtZT9p0EQohu4GQmnGf/hyj5OhnDox6I6zvkqHQXY0QIhA98Atm/YotTrO6cVVOC60rXIzS/Dbv1Wwzjy9JTIchc7ofCMWL58f9faxE4rFwzfk1WQs5LqPzWJ1ugXqWib7uxgWvy1hG46sAx+vjevyd0oioXTgYIV0F/E+Dx/zY0oK9O4T0t7bsSlEJtWryyVK4R2TdkmQ21yvyY60LIGtYa0fCcUz5QnwgDQa+Cdc4mI7BLsTvqeISt/hHJ/eLOznQq98U+lyuD6S8K6005KozJYntXSsn0BzQHf58yDR/dn+kqs2CyD2g/P5u1cP0w4j7fXJp47zrItmZcesV7PEjH4lUj5iqKda18q9fKy6+v9Z7Xrvp+cOJFwigH5KqkunNKwAeomPgQUQWeb//+82Kft/U3jWLlKj/s2nbfFsJ3COMgXuKq0DxVI3osn7xuzFTOr3dUCkXQIMF5JYBeHgJLoO1HKLvD4F/C/g1G0nTdv3f/GI6fhDYvLLnjfirvhZ7d960hCxwUp0NBS/I5bCr4bL/L3QEPxs8bYDhAhPwyu3+nnEMl91p8ZWW+XHqCZP7ndsVuR6u0yIumMf5MauCvmK/g+/PPuln84mVoFfaazx5cXaXa4Hu5nI0qDe3bsjM0BQi82uV81Q+XuzVGDSjVOfG2aXqQm5zh9Bpj1I53EQ9XnpLWcxiq9AtVsZ2ZLA03EUVzHXqHDdPoLbS+OON5PmzcYUqKwCsVpgRWnqRX3zaYhNOvS9yQFnZns3dwz4Pfcw0JhvQdoBtiQhjneB1p/mXkFEmdvjfJP5Hdlw1LG6pBWxvlRFNhd/fRMC19oPpHVy6p9Ed+gAVudLOfMc06vR5CdOR90Vsg4modcaEl0H5OllB+Rh3P3UY9QrKSCAdkPyoyZ33X1IJ8mmXDL2vNngl89BMVVZzWr
- Organization: GeometryFactory
On Wednesday, October 17, 2018 12:06:15 PM CEST ecu wrote:
> Hi there,
>
> After meshing (either with Constrained_Delaunay_triangulation_2 or
> Constrained_triangulation_plus_2) I would like to be able to determine which
> constraint an edge originated from, if any, but as yet have not been able
> to see how.
>
> I know how to test if an edge is constrained in general, but not due to
> which one.
>
> I have also noticed the insert_constraint method of
> Constrained_triangulation_plus_2 returns a Constraint_id, but I can't see
> how get this id from an edge.
You can use the function `Context context(Vertex_handle, Vertex_handle)` to
get the information.
Edge e;
const Vertex_handle va = e.first->vertex(e.second);
const Vertex_handle vb = e.first->vertex(e.third);
const Context context = tr.context(va, vb);
const Constraint_id id = context.id();
See the documentation:
https://doc.cgal.org/4.13/Triangulation_2/classCGAL_1_1Constrained__triangulation__plus__2.html#a65c0a285ac0f81aa246e0a06ea07ae99
--
Laurent Rineau, PhD
R&D Engineer at GeometryFactory http://www.geometryfactory.com/
Release Manager of the CGAL Project http://www.cgal.org/
- [cgal-discuss] Edge to constraint relationship, ecu, 10/17/2018
- Re: [cgal-discuss] Edge to constraint relationship, Laurent Rineau (CGAL/GeometryFactory), 10/17/2018
- Re: [cgal-discuss] Edge to constraint relationship, ecu, 10/18/2018
- Re: [cgal-discuss] Edge to constraint relationship, Laurent Rineau (CGAL/GeometryFactory), 10/17/2018
Archive powered by MHonArc 2.6.18.