Mesh.obb_numpy
- Mesh.obb_numpy()[source]
Compute the (axis aligned) bounding box of a mesh.
- Parameters
mesh (
Mesh
) – The mesh data structure.- Returns
list[list[float]] – The bounding box of the mesh as a list of corner vertex coordinates.
Examples
>>> from compas.datastructures import Mesh >>> hypar = Mesh.from_obj(compas.get('hypar.obj')) >>> box = mesh_oriented_bounding_box_numpy(hypar) >>> len(box) 8