Grasshopper

algorithmic modeling for Rhino

Hi guys,

I have a set of numbers and I want to make a particular addition.

Let's say my numbers are these: 0.1, 0.2, 0.3, 0.4, 05

starting from zero i want to make a definition that adds the successive number to the previous result. Example:

0; 0.1 (0+0.1); 0.3 (0.1+0.2); 0.6 (0.3+0.3); 1.0 (0.6+0.4); 1.5 (1.0+0.5)

I'm trying to write some definition, but for example if I graft my list of number, I have in return each number added always to zero, and not to the previous addition.

Any help would be appreciated.

Thank you 

Views: 388

Replies to This Discussion

The [Mass Addition] component does this already. Although you may have to prepend a zero to the list.

wow thanks man!

RSS

About

Translate

Search

Photos

  • Add Photos
  • View All

Videos

  • Add Videos
  • View All

© 2024   Created by Scott Davidson.   Powered by

Badges  |  Report an Issue  |  Terms of Service