Mesh.subdivided

Mesh.subdivided(scheme='catmullclark', **options)[source]

Subdivide the input mesh.

Parameters:
meshcompas.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.

Returns:
compas.datastructures.Mesh

The subdivided mesh.

Raises:
ValueError

If the scheme is not supported.