写的根据公差多次合并曲线的组件,在拾取大量线的时候报错,拾取某一部分就不会,不知道这个一大堆0的物件是什么了
提示错误如下
- Solution exception:unable to convert 00000000-0000-0000-0000-000000000000 into Curve geometry
代码如下:
import rhinoscriptsyntax as rs
import scriptcontext as sc
import Rhino
import Grasshopper as gh
rs.EnableRedraw(True)
sc.doc=ghdoc
lim=0.01
liml=[]
while lim<=y:
lim*=5
liml.append(lim)
liml.pop()
liml.append(y)
liml.insert(0,0.01)
print(liml)
for item in liml:
x=rs.JoinCurves(x,True,item)
a=x