#coding=utf-8
import Rhino.Geometry as rg
a=[]
circle = rg.Circle(15)
a.append(circle)
def addcirclr(cv):
pt2=cv.Center
cv=cv.ToNurbsCurve()
cv.Domain=rg.Interval(0,1)
pt1=cv.PointAt(0.25)
circle1 = rg.Circle((pt1+pt2)/2,rg.Point3d.DistanceTo(pt1,pt2)/2)
return circle1
for i in range(5):
a.append(addcirclr(a[-1]))
加一句重新定义参数范围的语句,这样好找位置
|