mesh_subdivide

compas.datastructures.mesh_subdivide(mesh, scheme='catmullclark', **options)[source]

Subdivide the input mesh.

Parameters
  • mesh (Mesh) – A mesh object.

  • scheme ({‘tri’, ‘quad’, ‘corner’, ‘catmullclark’, ‘doosabin’, ‘frames’, ‘loop’}, optional) – The scheme according to which the mesh should be subdivided. Default is 'catmullclark'.

  • options (dict) – Optional additional keyword arguments.

Returns

Mesh – The subdivided mesh.

Raises

ValueError – If the scheme is not supported.