Returns a plane that contains the line. The origin of the plane is at the start of the line. If possible, a plane parallel to the world XY, YZ or ZX plane is returned.
rhinoscriptsyntax.LinePlane (line)
rhinoscript.line.LinePlane (line)
line |
Required. List of 6 numbers, two Point3d, or Line. |
Plane |
The plane if successful |
None |
If not successful, or on error. |
import rhinoscriptsyntax as rs
lineFrom = (0,0,0)
lineTo = (10,10,0)
distance = rs.Distance(lineFrom, lineTo)
plane = rs.LinePlane([lineFrom, lineTo])
rs.AddPlaneSurface( plane, distance, distance )