algorithmic modeling for Rhino
Is there anyway possible that I could calculate the sum of length of all the lines generated?
cheers
Tags:
Plug your curves into a Curve Length component, this will then give you a list or lengths, one for each curve. You can compute the sum-total using a Mass Addition component.
--
David Rutten
david@mcneel.com
Poprad, Slovakia
Okay, pardon my lack of knowledge. How do I go from here?
Ah, it seems that your lines are not stored in a single list. Rather, they are stored in several lists, some containing more lines than others. Mass Addition only adds numbers together that share the same list. Since your data contains 6 different lists, you get 6 different numbers.
If you want to put all your lines into one list, you can either use the Flatten component (sledgehammer approach, it may destroy data you later rely on) or you can use the Path Mapper (or some other path operator) to merge your sublists in a clever fashion.
--
David Rutten
david@mcneel.com
Poprad, Slovakia
Welcome to
Grasshopper
Added by Parametric House 0 Comments 0 Likes
Added by Parametric House 0 Comments 0 Likes
Added by Parametric House 0 Comments 0 Likes
Added by Parametric House 0 Comments 0 Likes
Added by Parametric House 0 Comments 0 Likes
© 2024 Created by Scott Davidson. Powered by