MeshDos.from_shape

classmethod MeshDos.from_shape(shape, **kwargs)

Construct a mesh from a primitive shape.

Parameters
  • shape (Shape) – The input shape to generate a mesh from.

  • **kwargs (dict[str, Any], optional) – Optional keyword arguments to be passed on to compas.geometry.Shape.to_vertices_and_faces().

Returns

Mesh – A mesh object.