mesh_subdivide
- compas.datastructures.mesh_subdivide(mesh, scheme='catmullclark', **options)[source]
Subdivide the input mesh.
- Parameters:
- mesh
compas.datastructures.Mesh
A mesh object.
- schemeLiteral[‘tri’, ‘quad’, ‘corner’, ‘catmullclark’, ‘doosabin’, ‘frames’, ‘loop’], optional
The scheme according to which the mesh should be subdivided.
- **optionsdict[str, Any], optional
Optional additional keyword arguments.
- mesh
- Returns:
compas.datastructures.Mesh
The subdivided mesh.
- Raises:
- ValueError
If the scheme is not supported.