本帖最后由 Jorin 于 2013-10-20 16:11 编辑
强烈要求楼主上蝴蝶的代码
我完全没动脑筋,参考Jessesn的做法:
http://bbs.rhino3d.asia/thread-12082-1-2.html- import rhinoscriptsyntax as rs
- import math
- x=0
- y=0
- listPoints=[]
- for t in rs.frange(0,60,3):
- x=((-t*t+40*t+1200)*math.sin((math.pi*t)/180))/10
- y=((-t*t+40*t+1200)*math.cos((math.pi*t)/180))/10
- listPoints.append(rs.AddPoint(x,y,0))
- c1=rs.AddCurve(listPoints,3)
- s=listPoints[0]
- e=listPoints[len(listPoints)-1]
- c2=rs.MirrorObject(c1,s,e,True)
复制代码 |