mesh_subdivide_frames

compas.datastructures.mesh_subdivide_frames(mesh, offset, add_windows=False)[source]

Subdivide a mesh by creating offset frames and windows on its faces.

Parameters:
meshcompas.datastructures.Mesh

The mesh object to be subdivided.

offsetfloat | dict[int, float]

The offset distance to create the frames. A single value will result in a constant offset everywhere. A dictionary mapping faces to offset values will be processed accordingly.

add_windowsbool, optional

If True, add a window face in the frame opening.

Returns:
compas.datastructures.Mesh

A new subdivided mesh.