コンポーネント executeの中身

import rhinoscriptsyntax as rs
import Rhino.Geometry as rg
#print mas.agts

objs = []
for i in range(len(mas.agts)):
    agt = mas.agts[i]
    pt = rs.AddPoint(agt.pos)
    objs.append(pt)
    
    ptlist = []
    for pt in agt.trail:
        if len(ptlist) == 0:
            ptlist.append(pt)
        elif ptlist[-1].Equals(pt) == False:
            ptlist.append(pt)
            
    if len(ptlist)>1:
        pl = rs.AddPolyline(ptlist)
        objs.append(pl)
    
a = objs
mas.proc()

Comments are closed.