I was wondering if anyone had information on using Grasshopper's tree class. There doesn't seem to any documentation, but maybe I don't know where to look. I need to be able to do something similar to the code below, but instead of with a System.Collections.Generic.list with the grasshopper trees list type. If Grashopper's tree class doesn't have an insert, remove or some sort of replace function, can I convert the tree class into an Arraylist?
Just a thought, but don't mistake me throwing out these techy terms as any real knowledge. . . . A week ago I had no idea what a class or method was!
Basically I need to be able to replace one point on a list, within a specific branch with the corresponding point (which has been projected) from another list.I can not, for various reason dynamically re-map this list into branches which I know how to do. I need to retain the branch structure going in.
Private Sub RunScript(ByVal in_pntList1 As List(Of On3dPoint), ByVal in_pntList2 As List(Of On3dPoint), ByRef out_pntList As Object)
Dim i As Int32
For i = 0 To in_pntlist1.Count - 1
If in_pntlist1(i).x < in_pntlist2(i).x Then
in_pntlist1.removeat(i + 1)
out_pntlist = in_pntlist1
FYI The ultimate goal is to partially project a helical curve onto a surface based on wether it is "inside" or "outside" of that surface. Luckily the surface is aligned to the orthagonaly to the y axis so i can get away with comparing x co-ordinates. The BRep inclusion component seemed a bit feisty.