intersection_polyline_plane

compas.geometry.intersection_polyline_plane(polyline, plane, expected_number_of_intersections=None, tol=1e-06)[source]

Calculate the intersection point of a plane with a polyline. Reduce expected_number_of_intersections to speed up.

Parameters
  • polyline (compas.geometry.Polyline or sequence of points) – Polyline to test intersection.

  • plane (compas.geometry.Plane or point and vector) – Plane to compute intersection.

  • expected_number_of_intersections (integer, optional) – Number of useful or expected intersections. Default is the number of lines conforming the polyline.

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

Returns

list of points