Mesh.mesh_oriented_bounding_box_xy_numpy

Mesh.mesh_oriented_bounding_box_xy_numpy()[source]

Compute the (axis aligned) bounding box of a projection of the mesh in the XY plane.

Parameters

mesh (Mesh) – The mesh data structure.

Returns

list[list[float]] – The bounding box.

Examples

>>> from compas.datastructures import Mesh
>>> mesh = Mesh.from_obj(compas.get('faces.obj'))
>>> mesh_oriented_bounding_box_xy_numpy(mesh)
[[10.0, 0.0], [0.0, 0.0], [0.0, 10.0], [10.0, 10.0]]