oriented_bounding_box

compas.geometry.oriented_bounding_box(points)[source]

Computes the oriented minimum bounding box of a list of points.

Parameters:
pointssequence[point]

XYZ coordinates of the points.

Returns:
list[[float, float, float]]

XYZ coordinates of 8 points defining a box.

Notes

This function is a pluggable. If no plugin is found, it will use the default implementation (compas.geometry.oriented_bounding_box_numpy()). If you cannot use the default implementation because you’re working in Rhino, you can call this function through RPC.