Returns a plane that was fit through an array of 3-D points.
rhinoscriptsyntax.PlaneFitFromPoints (points)
rhinoscript.plane.PlaneFitFromPoints (points)
points |
Required. List. A list of 3-D points. |
Plane |
The plane if successful |
None |
If not successful, or on error. |
import rhinoscriptsyntax as rs
points = rs.GetPoints()
if points:
plane = rs.PlaneFitFromPoints(points)
if plane:
magX = plane.XAxis.Length
magY = plane.YAxis.Length
rs.AddPlaneSurface( plane, magX, magY )