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
  • mesh (compas.datastructures.Mesh) – The mesh object to be subdivided.

  • offset (float | 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_windows (bool, optional) – If True, add a window face in the frame opening.

Returns

compas.datastructures.Mesh – A new subdivided mesh.