Mesh.from_shape
- classmethod Mesh.from_shape(shape, **kwargs)[source]
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.