LinePlaneIntersection

Calculates the intersection of an infinite line and an infinite plane.

Syntax

rhinoscriptsyntax.LinePlaneIntersection (line, plane)

rhinoscript.line.LinePlaneIntersection (line, plane)

Parameters

line

Required.  Two 3-D points identifying the starting and ending points of the line to intersect.

plane

Required.  The plane to intersect.

Returns

Point3d

The 3-D point of intersection is successful.

None

If not successful, or on error.

Example

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)

Also See

IntersectPlanes

LineLineIntersection

PlanePlaneIntersection