How to triangulate points in 3d with triangles (not tetrahedrons) using CGAL? #7716
-
Using CGAL, I have some points in R^3, they represent a 2-manifold that is closed and embedded in R^3. For the purpose of illustration, I have a S^2 sphere:
I would like to triangulate this sphere using CGAL and obtain a triangle mesh. It seems to me that Triangulation_3 generates tetrahedral meshes. I would like each facet to have 3 vertices, not 4. In the documentation, it does seem that degenerate cases are supported, but I'm struggling to find how to properly use triangle connectivity. |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 9 replies
-
Hello, A tetrahedron is made of triangles so what do you have against the tetrahedra? If you have tetrahedra then you have triangles. Do you mean you don't want some edges that go through the interior of your manifold ? |
Beta Was this translation helpful? Give feedback.
-
In fact you should have a look at the surface reconstuction algorithms. To get started have a look at the tutorial. |
Beta Was this translation helpful? Give feedback.
https://doc.cgal.org/latest/Convex_hull_3/Convex_hull_3_2quickhull_3_8cpp-example.html