is_intersection_segment_plane

compas.geometry.is_intersection_segment_plane(segment, plane, tol=1e-06)[source]

Determine if a line segment intersects with a plane.

Parameters
  • segment ([point, point] or compas.geometry.Line) – A line segment.

  • plane ([point, normal] or compas.geometry.Plane) – A plane.

  • tol (float, optional) – A tolerance for intersection verification. Default is 1e-6.

Returns

boolTrue if the segment intersects with the plane, False otherwise.