mesh_oriented_bounding_box_numpy

compas.datastructures.mesh_oriented_bounding_box_numpy(mesh)[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