Studyhardagain 发表于 2015-6-19 09:13
不好意思~
代码如下:
这种第二个参数需要的类型也是list,shapes Required. List. A list of Guids or strings identifying one or more shape, or cross section, curves.
所以改下就ok了。
- import rhinoscriptsyntax as rs
- def ZhuTou(Radius):
- Factor = 1.1
- Circle1 = rs.AddCircle ([0,0,0],Radius)
- Circle2 = rs.AddCircle ([0,0,-Radius * (Factor - 1)],Radius * Factor)
- Arc = rs.AddArc (rs.PlaneFromFrame ([Radius,0,- Radius *(Factor - 1)],[1,0,0],[0,0,1]),Radius * (Factor -1),90)
- Srf1 = rs.AddSweep2([Circle1,Circle2],[Arc])
- if __name__ == "__main__":
- ZhuTou(625)
复制代码
|