LinePlane

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.

Syntax

rhinoscriptsyntax.LinePlane (line)

rhinoscript.line.LinePlane (line)

Parameters

line

Required.  List of 6 numbers, two Point3d, or Line.

Returns

Plane

The plane if successful

None

If not successful, or on error.

Example

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 )

Also See

LineClosestPoint

LineIsFartherThan

LineMaxDistanceTo

LineMinDistanceTo

LineTransform