mesh_subdivide_corner

compas.datastructures.mesh_subdivide_corner(mesh, k=1)[source]

Subdivide a mesh by cutting corners.

Parameters:
meshcompas.datastructures.Mesh

The mesh object that will be subdivided.

kint, optional

The number of levels of subdivision.

Returns:
compas.datastructures.Mesh

A new subdivided mesh.

Notes

This is essentially the same as Loop subdivision, but applied to general meshes.