Hello friends
I have lines of different lengths
I want to separate lines whose total length is approximately 6 meters.
How can this be done?
lines of different lengths.gh (33.0 KB)
Which lines together add up to 6 meters in length?
I did the list partition here, but is there a better way?
So what?
Which lines together add up to 6 meters in length?
I did the list partition here, but is there a better way?
What you have done makes no sense at all. The partitioned lines are not adjacent to each other so can’t be joined into single polylines.
I do not want to connect them
I want a 6 meter pipe
Separate suitable parts for optimal material consumption
this takes the lengths sorted in decreasing order and loops through them: it assigns a given length to the first data-branch which can contain it and sum-up under 6
for sure could be improved… I’m not that much of a dragon in data trees
lines of different lengths_Re.gh (44.6 KB)
edit: it uses elefront, peacock, anemone from food4rhino.com