mesh_explode

compas.datastructures.mesh_explode(mesh, cls=None)[source]

Explode a mesh into its disconnected parts.

Parameters
  • mesh (Mesh) – A mesh.

  • cls (Type[Mesh], optional) – The type of the return mesh.

Returns

list[Mesh] – The list of the meshes from the exploded mesh parts.