I have the following case: I am getting a list of 12 lines based on a box which I want to sort based on length. Generally for these boxes I will have 3 set of equal length lines. I want to have the lines in each set extend by a certain value:
Thanks! What I meant is: how to extend the longest curves by 50, the medium length ones by 25, and the smallest by 10. I was trying to partition / split the list of curves based on their length and then somehow extend each resulting list… but evidently failing.
Both this and the next solution work beautifully -will have to break down the logic.
One unexpected thing I found is that they both break if I try to process two boxes at once -could there be an easy solution to that?
…wow?! I wish I knew exactly why things work in this case. Is there a way to visualize how an operator (in this case Extend Curve) combines lists, trees, data? For example if I wouldn’t flatten the input edge list, would there be something I could do with the data structure of the lengths to still ensure a good result?
Instead of grafting the ‘L0’ and ‘L1’ inputs to Extend Curve, you could graft the output of Merge. Or, instead of grafting the output of Merge you could replace it with Entwine.
But you asked about multiple boxes - so where is that test geometry? People who ask questions should work as hard (or harder) to post code/geometry as the people who answer the questions.