Mesh3gs.from_shape

classmethod Mesh3gs.from_shape(shape, **kwargs)

Construct a mesh from a primitive shape.

Parameters
  • shape (compas.geometry.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

compas.datastructures.Mesh – A mesh object.