PlaneFitFromPoints

Returns a plane that was fit through an array of 3-D points.

Syntax

rhinoscriptsyntax.PlaneFitFromPoints (points)

rhinoscript.plane.PlaneFitFromPoints (points)

Parameters

points

Required.  List.  A list of 3-D points.

Returns

Plane

The plane if successful

None

If not successful, or on error.

Example

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 )

Also See

PlaneFromFrame

PlaneFromNormal

PlaneFromPoints