搂住的意思是说不用指令,而是用 RhinoScript 来执行 Pipe 的类似功能吗?
RhinoScript 所有的函数都是呼叫 Rhino 内部函数库的, 例如可以这么写- m strCurve, arrDomain
- strCurve = Rhino.GetObject("Select curve to create pipe around", 4, True)
- If Not IsNull(strCurve) Then
- arrDomain = Rhino.CurveDomain(strCurve)
- Rhino.AddPipe strCurve, Array(arrDomain(0)), Array(4)
- End If
复制代码 |