Calculates the intersection of two planes.
rhinoscriptsyntax.PlanePlaneIntersection(plane1, plane2)
rhinoscript.plane.PlanePlaneIntersection(plane1, plane2)
plane1 |
Required. The first plane to intersect. |
plane2 |
Required. The second plane to intersect. |
tuple |
Two 3-D points identifying the starting and ending points of the intersection line. |
None |
If not successful, or on error. |
import rhinoscriptsyntax as rs
plane1 = rs.WorldXYPlane()
plane2 = rs.WorldYZPlane()
line = rs.PlanePlaneIntersection(plane1, plane2)
if line: rs.AddLine(line[0], line[1])