Grasshopper

algorithmic modeling for Rhino

Dear forum

I hope someone can help me out. It is properly a easy task, but I dont know to do it.

I would like to do something like this:

A list of numbers/values, let us say: {2,4,4,6, etc} {A,B,C,D} E.g.:

0  2 (A) = 2

1  2+4 (A+B) = 6 (AB)

2  6+4 (AB+C) = 10 (ABC)

3  10+6 (ABC+D) = 16 (ABCD)

etc.

Into a new list numbers:

{2,6,10,16, etc} that adding the previous number with the next number.

Thanks,

daniel

Views: 2052

Replies to This Discussion

The [Mass Addition] component outputs partial summation results. I think this is what you're after.

--

David Rutten

david@mcneel.com

Yes... I have overlooked that output.

Great - Thanks!

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