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
Simply connect the output of the last component (flip matrix) in the file I shared to a âlist itemâ component as it has â0â as the default index:
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