intersection_plane_circle

compas.geometry.intersection_plane_circle(plane, circle)[source]

Computes the intersection of a plane and a circle.

There are 4 cases of plane-circle intersection : 1) they do not intersect, 2) they coincide (circle.plane == plane), 3) they intersect in 2 points (secant), 4) they intersect in 1 point (tangent).

Parameters
  • plane (tuple) – point, normal of the plane.

  • circle (tuple) – (point, normal), radius of the circle

Returns

None or point or list of points

Examples

>>> plane = (0, 0, 0), (0, 0, 1)
>>> circle = ((0, 0, 0), (0, 1, 0)), 10.0
>>> x1, x2 = intersection_plane_circle(plane, circle)
>>> x1
(-10.0, 0.0, 0.0)
>>> x2
(10.0, 0.0, 0.0)