BoundingVolume.from_mesh
- classmethod BoundingVolume.from_mesh(mesh)[source]
Create a
BoundingVolumefrom acompas.datastructures.Mesh.- Parameters
mesh (
compas.datastructures.Mesh)- Returns
BoundingVolume– Mesh to defineBoundingVolumewith.
Examples
>>> import compas >>> from compas.datastructures import Mesh >>> from compas_fab.robots import BoundingVolume >>> mesh = Mesh.from_obj(compas.get('faces.obj')) >>> bv = BoundingVolume.from_mesh(Mesh) >>> bv.type 3