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 (Mesh) – The mesh object to be subdivided.
offset (float or dict) – The offset distance to create the frames. A single value will result in a constant offset everywhere. A dictionary mapping facekey: offset will be processed accordingly.
add_windows (boolean) – Optional. Flag to add window face. Default is
False
.
- Returns
Mesh – A new subdivided mesh.
Examples
>>>