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 (compas.datastructures.Mesh) – The mesh data structure.

Returns

list – 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