Subject: CGAL users discussion list
List archive
- From: "Sebastien Loriot (GeometryFactory)" <>
- To:
- Subject: Re: [cgal-discuss] Mesh_3 -> Triangulation_3
- Date: Mon, 7 Jan 2019 08:47:59 +0100
- Authentication-results: mail2-smtp-roc.national.inria.fr; spf=None ; spf=Pass ; spf=None
- Ironport-phdr: 9a23:Is99RRIpW+5p1SBmmtmcpTZWNBhigK39O0sv0rFitYgeLv/xwZ3uMQTl6Ol3ixeRBMOHs6IC07KempujcFRI2YyGvnEGfc4EfD4+ouJSoTYdBtWYA1bwNv/gYn9yNs1DUFh44yPzahANS47xaFLIv3K98yMZFAnhOgppPOT1HZPZg9iq2+yo9JDffwZFiCChbb9uMR67sRjfus4KjIV4N60/0AHJonxGe+RXwWNnO1eelAvi68mz4ZBu7T1et+ou+MBcX6r6eb84TaFDAzQ9L281/szrugLdQgaJ+3ART38ZkhtMAwjC8RH6QpL8uTb0u+ZhxCWXO9D9QLYpUjqg8qhrUgflhjoZOT438G/ZicJ+g6xUrx2juxNxzJXZYJ2WOfdkYq/RYd0XSGhHU81MVyJBGIS8b44XAuYPIOhXsZLyqEEVrRuiBAmjGuXvwSJOiH/xx6060uMhER3b1wAkHtwBrnPUrNDrO6cOS+C0zKnGwi/fYPNK3jf98ojJfhUvrfqRWr9was7RyU41FwPEiVWQtZbpPzaR1ukWvGib6vBvVeOri2I9tw5xpT2vy94qh4LUiIwVzVXE+j94wIYzPdC3VEF7bsSgEJdKsCGaLYR2T8U/SG9roCY30qMKtYK/cSQQy5kqxwTTZ+Kbf4WL+B7uW+icLS96iX9mYr6zmRm//Em6xuHhUsS53kxGoyhFn9TKq3sDzQbc6tKdRft45kqh2SiA1wTU6uxcJEA7j6vbK5o4zrEui5UfrF3PHiH5lUj4lqOWeUIk+u+n6+TjfLrqvIOTN4hxig3mM6QunNKwAfggPwQQQ2SW/f6w2b7j8EHjXrlGkv47nrPWvZ3UPcgbo7S2Aw5R0oYt8Ra/CDKm3cwDnXkDK1JFYhOHj4/1O13UJfD4Ceyyg1upkDhxxvDGOqftDYnKLnjGiLvhZ6py61ZAyAovytBS/45bCr4bL/L3Q0P+qd3YDgQlPAyp2ObnE85w1pgeWGKKGq+WKrnesV6O5uI1IumDfpUZuDjnK6tt2/m7hnAwnRoRfLKiwIAMQHG+BPVvZUuDMlT2hdJUW1wHtAMlUO3njhWmViRSYGr6H40x4TQ2FJi3I47IWoe3kf3LlHOgGppMZ2daTFWIOXjtfoSAHfwLbXTBcYdajjUYWO35GMca3ha0uVqikus1Hq/v4iQd8Knb+p1w7uzXmws18GUtXcuY2mCJCWpzmzFRHmNk7OVEuUV4j2y7/+1gmfUBTI5c4vpIVkExMpuOl7UnWeC3YRrIe5KycHjjQtiiBmtsHNc4wttLbkokXtv+1VbM2C2lB7JTnLuOVsQ5
Hi Marc,
Did you try to dump c3t3.triangulation()? AFAIK, this should directly
call the operator<<() from Regular_triangulation_3 and gives you what
you need. I guess you could even down cast it to a given Triangulation_3
class.
If you need to import it into a different triangulation type, you have
to do it at the TDS level by using the function copy_tds() for example.
See here:
https://doc.cgal.org/latest/TDS_3/classTriangulationDataStructure__3.html#aac784b676421bd590612bb08c0a84f89
HTH,
Sebastien.
On 01/05/2019 01:53 PM, Marc Alexa wrote:
Dear all,
I am generating a tetrahedral mesh using the suite of algorithms in Mesh_3. I
want to use the resulting mesh in my code, which is based on Triangulation_3.
The vertex and cell base classes are incompatible. My preferred way for doing
this would be writing the mesh to a file. Unfortunately, the formats of the
stream operators are different. Is there an easy way to “reduce” what is
being written by Mesh_3 to what is being expected by Triangulation_3?
On a side note: I understand that if I am not using sliver exudation, the
triangulation generated by Mesh_3 will be Delaunay. This means I could export
the points only (and then reconstruct the tetrahedra). Then I only need
information on which tetrahedra are in the interior of the meshed surface. I
tried to circumvent this by using a simple convex surface, namely a sphere.
Yet even for the sphere some tetrahedra are excluded, despite clearly lying
in the interior. I do understand that the excluded tetrahedra are slivers,
but wouldn’t it make sense that a tetrahedral mesh with the boundary vertices
on the sphere contained everything inside the sphere?
Best,
Marc
- [cgal-discuss] Mesh_3 -> Triangulation_3, Marc Alexa, 01/05/2019
- Re: [cgal-discuss] Mesh_3 -> Triangulation_3, Sebastien Loriot (GeometryFactory), 01/07/2019
- Re: [cgal-discuss] Mesh_3 -> Triangulation_3, Marc Alexa, 01/09/2019
- Re: [cgal-discuss] Mesh_3 -> Triangulation_3, Sebastien Loriot (GeometryFactory), 01/10/2019
- Re: [cgal-discuss] Mesh_3 -> Triangulation_3, Marc Alexa, 01/10/2019
- Re: [cgal-discuss] Mesh_3 -> Triangulation_3, Marc Alexa, 01/10/2019
- Re: [cgal-discuss] Mesh_3 -> Triangulation_3, Mael, 01/10/2019
- Re: [cgal-discuss] Mesh_3 -> Triangulation_3, Laurent Rineau (CGAL/GeometryFactory), 01/11/2019
- Re: [cgal-discuss] Mesh_3 -> Triangulation_3, Marc Alexa, 01/11/2019
- Re: [cgal-discuss] Mesh_3 -> Triangulation_3, Laurent Rineau (CGAL/GeometryFactory), 01/11/2019
- Re: [cgal-discuss] Mesh_3 -> Triangulation_3, Marc Alexa, 01/11/2019
- Re: [cgal-discuss] Mesh_3 -> Triangulation_3, Marc Alexa, 01/10/2019
- Re: [cgal-discuss] Mesh_3 -> Triangulation_3, Marc Alexa, 01/10/2019
- Re: [cgal-discuss] Mesh_3 -> Triangulation_3, Sebastien Loriot (GeometryFactory), 01/10/2019
- Re: [cgal-discuss] Mesh_3 -> Triangulation_3, Marc Alexa, 01/09/2019
- Re: [cgal-discuss] Mesh_3 -> Triangulation_3, Laurent Rineau (CGAL/GeometryFactory), 01/11/2019
- Re: [cgal-discuss] Mesh_3 -> Triangulation_3, Marc Alexa, 01/11/2019
- Re: [cgal-discuss] Mesh_3 -> Triangulation_3, Sebastien Loriot (GeometryFactory), 01/07/2019
Archive powered by MHonArc 2.6.18.