Grasshopper

algorithmic modeling for Rhino

Is there anyway possible that I could calculate the sum of length of all the lines generated?

evaluate%20length.png

cheers

Views: 8053

Replies to This Discussion

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

o...too slow

thanks!

Okay, pardon my lack of knowledge. How do I go from here?

Attachments:

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

RSS

About

Translate

Search

Videos

  • Add Videos
  • View All

© 2024   Created by Scott Davidson.   Powered by

Badges  |  Report an Issue  |  Terms of Service