Block.from_shape
- classmethod Block.from_shape(shape, **kwargs)
Construct a mesh from a primitive shape.
- Parameters:
- shape
compas.geometry.Shape
The input shape to generate a mesh from.
- **kwargsdict[str, Any], optional
Optional keyword arguments to be passed on to
compas.geometry.Shape.to_vertices_and_faces()
.
- shape
- Returns:
compas.datastructures.Mesh
A mesh object.