Calculates the intersection of an infinite line and an infinite plane.
rhinoscriptsyntax.LinePlaneIntersection (line, plane)
rhinoscript.line.LinePlaneIntersection (line, plane)
line |
Required. Two 3-D points identifying the starting and ending points of the line to intersect. |
plane |
Required. The plane to intersect. |
Point3d |
The 3-D point of intersection is successful. |
None |
If not successful, or on error. |
import rhinoscriptsyntax as rs
plane = rs.WorldXYPlane()
line = (2, 11, 13), (20, 4, -10)
point = rs.LinePlaneIntersection(line, plane)
if( point!=None ): rs.AddPoint(point)