When I create a multidimensional array of "On3dPoint" points in a VB.net script component, the output parameter data is always "flattened" into a single list of points. My array is definitely multidimensional because I can output single values (eg. point(4,13) returns the correct point x,y,z). Is there a way to keep the structure of a multidimensional array intact?
How would you access that multidimensional data in GH though? There are really only methods for dealing with single lists of data, not multidimensional ones, so that's really the fundamental issue. If you want more structure than just one long list than your going to have to create your own data tree, which has the potential of mimicking a multidimensional structure fairly closely. I'd do a quick search for data tree as there have been a few threads that go over creating them.
Damien: Thanks for the tip. I'll look into creating a Data Tree from my points rather than a multidimensional array. Do you happen to have any examples of how to do this?
What I want to do is simple: Let's say my script creates 100 points. Instead of 100 points in 1 path, I'd like output 10 paths with 10 points in each path. (Then I could plug these points into another GH component that would create a curve, etc.)
Here is an example (not sure if I made it or dl it) that takes in two lists of points and organizes them in a tree. Kind of an obsolete example now, but at least the vb code could get you going in the right direction.