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

Surface SolidPtOn Grips are not in particular sensible order

$
0
0

Is there a way to get a planar surface grip points list in a similar order as curve points?

import rhinoscriptsyntax as rs

rs.UnselectAllObjects()
obj = rs.GetObject("Pick object")

rs.SelectObject(obj)
if rs.IsSurface(obj):
    rs.Command("_SolidPtOn _SelID " + str(obj) + " _Enter", False)
else:
    rs.EnableObjectGrips(obj)

rs.UnselectAllObjects()
pts = rs.ObjectGripLocations(obj)
rs.EnableObjectGrips(obj, False)

for i in range(0, len(pts)):
    rs.AddTextDot(str(i), pts[i])

1 post - 1 participant

Read full topic


Viewing all articles
Browse latest Browse all 5809

Trending Articles