Hi @christopher.ho, thank you so much for the speedy response!
My code currently looks a lot like yours. However, using GH_Path, there’s no way to access a data tree two branches deep, as your
structure.Branch[i][0]...
seems to be doing. I’m trying to be able to extract branches [i][j]
and [k]
separately.
I’ll give you an example, in a previous thread about the same component library, I hadn’t worked out the DataTree construction logic yet, so I was expressing them as Vectors. One advantage of this was vectors can be deconstructed into their x,y, and z components.
I’m trying to extract and use the properties of the point itself to 1. keep from having to pass the extra vector info from the component that constructs the points (and vectors). 2. use a data type - vectors - which may be confusing to the end user.
Thanks for any additional input you may have.
(And to all - my apologies I’m not posting more code here, it’s actually split between a few class files and would be hard to gather together and format clearly. If we get further into the issue, I’ll do so.)