Reputation: 399
I am using the CGAL::Surface_mesh
class to represent a 3d triangle mesh. I wanted to use this instead of the Polyhedral_3
mesh due to its simplicity and index structure and ease of use with OpenGL. I am trying to write a method to perform 1-4 subdivision of a triangle and cannot find how to do so in the documentation. Is there a way to split faces (1-4 splitting or barycentric splitting) in a Surface_mesh
class similar to the create_center_vertex
in Polyhedral_3
?
Upvotes: 0
Views: 456
Reputation: 6263
There are a set of generic functions that are working both on Surface_mesh, Polyhedron and even OpenMesh. In the BGL package, see the Euler operations. The one you are looking for is here.
Upvotes: 2