Quantcast
Channel: Scripting - McNeel Forum
Viewing all articles
Browse latest Browse all 5783

PlaneFitFromPoints

$
0
0

@gianpaolo_savio1 wrote:

I’m trying the rs.PlaneFitFromPoints function.
Using the example in the RhinoPython Help:

    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 )

an error occurred:
Message: 'type' object has no attribute 'index'
Traceback:
line 402, in coerce3dpointlist, "C:...\utility.py"
line 119, in PlaneFitFromPoints, "C:...\plane.py"
line 5, in , "C:...\TempScript.py"

Posts: 4

Participants: 2

Read full topic


Viewing all articles
Browse latest Browse all 5783

Trending Articles