mesh_subdivide_corner

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

Subdivide a mesh by cutting corners.

Parameters
  • mesh (compas.datastructures.Mesh) – The mesh object that will be subdivided.

  • k (int, 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.