intersection_segment_plane

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

Computes the intersection point of a line segment and a plane

Parameters
  • segment (tuple) – Two points defining the line segment.

  • plane (tuple) – The base point and normal defining the plane.

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

Returns

point or None