I am measuring the segment length for consecutive points along the polylines. Which gives me X data branches of Y points.
My goal is to combine these X lists together into one list, that first gives me the segment length for all the first to second points, then all the lengths from second to third etc
I will include the .gh file too, please let mew know if anything is unclear.
I don’t have the plugin anyway so it won’t do me any good. I wrote this purple group using Anemone to align the seams but don’t understand what you want?
Not sure if ‘combining’ lists is what you want because that implies you’d be forming multiple lists when in reality you already have all lengths you need?
I don’t have pufferfish either, but you can align seams in a variety of ways, here’s one:
Right now I have one tree with each branch representing the consecutive segment lengths for each polyline.
What I want is to have all these values in the same branch, but if I just flatten the output I will get one list containing all the branches one after the other.
What I want is basically a list with all the values but in the index order :
All the first values from each branch then all the second values from each branch etc
Is that clearer? I wish I could explain it in french aha
So if all is good right now maybe the more specific title was “extract first item from each branch” ? Lol - still too general without context obviously - it makes sense you wrote it the other way because you first needed to grab the lengths from 0 to 1, 1 to 2, 2 to 3, etc.
I think so - what’s the ‘data structure’ of said list, though? If you just want every first item from each branch after measuring the consecutive lengths, you already have that…if you want all the items of each branch in one single list, then as Joseph suggested simply flatten the result of the flip matrix component, the only difference is that now you have shifted the point lists and obtained the consecutive lengths - so ignore the ‘list item’ because that only gives you one value from each branch - If this isn’t correct then you should probably draw or mark on a screenshot what you want - note that in the screenshot I asked about you said ‘yes exactly’.
I have missed Joseph’s answer, this is what I needed.
I can’t believ I didn’t think about that, there is still much work needed from me to be useful with Rhino.
Thanks a lot for your time, it is much appreciated