在建立二维点阵的基础上,增添Attractor干扰点,进而绘制渐变圆。
import rhinoscriptsyntax as rs import math pts=[] for i in range(15): for j in range(15): x=i*10 y=j*10 z=0 pts.append((x,y,z)) attractor=rs.GetPoint('select a point') for i in range(len(pts)): distance =rs.Distance(attractor,pts[i]) rs.AddCircle(pts[i],distance/40)