里面的代码和这个极其类似作者: panhao1 时间: 2010-5-9 22:38
也许大家就要问了 为什么是structure而不是datatree
在我用C#时有提示说在运算器用datatree 在VS里用structure
估计与gh的装箱和拆箱的限制有关
再看这段代码
Dim strip As Boolean
' Dim struct As New GH_Structure(Of Grasshopper.Kernel.Types.GH_Goo)
' For i As int32= 0 To x.count - 1
' Dim db As New Grasshopper.Kernel.Types.GH_number(x(i))
' struct.Append(db)
' Next
' Dim struct2 As New GH_Structure(Of Grasshopper.Kernel.Types.GH_Goo)
' struct2.MergeStructure(struct)
' Dim VB As IEnumerator(Of GH_Path)
' VB = struct.Paths.GetEnumerator
' Do While VB.MoveNext
' Dim path As GH_Path = VB.Current
' struct2.ExtrudePath(path, strip)
' Loop
' If (Not VB Is Nothing) Then VB.Dispose
'A = struct.Paths