triangulation of a 3D polygon

classic Classic list List threaded Threaded
1 message Options
Reply | Threaded
Open this post in threaded view
|

triangulation of a 3D polygon

antoineL
Hello everyone,

What is the best way to triangulate a 3D polygon with hole.

I try this :

    Mesh meshOut = triangulateLineStringMesh(poly.exteriorRing()); // a
function wich transform a ring (of my polygon) in Surface_mesh and
triangulate it.

    for (size_t i(0); i<poly.numInteriorRing(); i++)
    {
        Mesh meshInt = triangulateLineStringMesh(poly.interiorRingN(i));
       
CGAL::Polygon_mesh_processing::corefine_and_compute_difference(meshOut,meshInt,meshOut);
    }

But the corefine_and_compute_difference doesn't work. Probably because my
mesh are not volume.

i'm sure that there is an easy way...

Thanks,
Antoine






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

--
You are currently subscribed to cgal-discuss.
To unsubscribe or access the archives, go to
https://sympa.inria.fr/sympa/info/cgal-discuss