intersection_segment_plane

compas.geometry.intersection_segment_plane(segment, plane, tol=None)[source]

Computes the intersection point of a line segment and a plane

Parameters:
segment[point, point] | compas.geometry.Line

Two points defining the line segment.

plane[point, vector] | compas.geometry.Plane

The base point and normal defining the plane.

tolfloat, optional

Tolerance for evaluating that the dot product of the line direction and the plane normal is zero. Default is TOL.absolute.

Returns:
[float, float, float] | None

The intersection point between the line and the plane, or None if the line and the plane are parallel.