intersection_polyline_box_xy

compas.geometry.intersection_polyline_box_xy(polyline, box, tol=None)[source]

Compute the intersection between a polyline and a box in the XY plane.

Parameters:
polylinesequence[point] | compas.geometry.Polyline

A polyline defined by a sequence of points, with at least XY coordinates.

box[point, point, point, point]

A box defined by a sequence of 4 points, with at least XY coordinates.

tolfloat, optional

A tolerance value for point comparison.

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

A list of intersection points.