Mesh.bounding_box_xy

Mesh.bounding_box_xy()[source]

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

Parameters:
meshcompas.datastructures.Mesh

The mesh data structure.

Returns:
list[list[float]]

The 4 corners of the bounding polygon in the XY plane.

See also

compas.geometry.mesh_bounding_box()
compas.geometry.mesh_oriented_bounding_box_numpy()
compas.geometry.mesh_oriented_bounding_box_xy_numpy()

Examples

>>> from compas.datastructures import Mesh
>>> mesh = Mesh.from_obj(compas.get('faces.obj'))
>>> mesh_bounding_box_xy(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]]