Cell.obb_numpy

Cell.obb_numpy()

Compute the (axis aligned) bounding box of a mesh.

Parameters

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