Mesh.from_shape
- classmethod Mesh.from_shape(shape, **kwargs)
Construct a mesh from a primitive shape.
- Parameters
shape (:class: compas.geometry.shape) – The input shape to generate a mesh from.
kwargs – Optional keyword arguments
u
andv
for the resolution in u (Torus, Sphere, Cylinder, Cone) and v direction (Torus and Sphere).
- Returns
Mesh – A mesh object.
Examples
>>>