Mesh.bounding_box
-
Mesh.
bounding_box
()[source] Compute the (axis aligned) bounding box of a mesh.
- Parameters
mesh (compas.datastructures.Mesh) – The mesh data structure.
- Returns
list of point – The 8 corners of the bounding box of the mesh.
Examples
>>> mesh_bounding_box(mesh) [[0.0, 0.0, 0.0], [10.0, 0.0, 0.0], [10.0, 10.0, 0.0], [0.0, 10.0, 0.0], [0.0, 0.0, 0.0], [10.0, 0.0, 0.0], [10.0, 10.0, 0.0], [0.0, 10.0, 0.0]]