kip622
kip622

Reputation: 399

How to split a face in Surface_mesh

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

Answers (1)

sloriot
sloriot

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

Related Questions