bounding_box_xy

compas.geometry.bounding_box_xy(points)[source]

Compute the axis-aligned minimum bounding box of a list of points in the XY-plane.

Parameters

points (sequence[point]) – XY(Z) coordinates of the points.

Returns

list[[float, float, 0.0]] – XYZ coordinates of four points defining a rectangle in the XY plane.

Notes

This function simply ignores the Z components of the points, if it is provided.

Examples

>>>