algorithmic modeling for Rhino
Hello Yousuf,
You can use nested for-loops to do this. For example, inserting the following code snippet in the C# script component will do the trick! If you need any help in understanding the code, let me know.
for (int i = 0; i < givenSet.Length; i++)
{
resultingSet[i] = 0;
for (int j = 0; j <= i; j++)
{
resultingSet[i] += givenSet[j];
}
}
Cheers,
Sridevi
The Mass addition Component has a partial results output which will achieve the results you want.
Hahaha... such a simple solution! Too bad I cannot "up-vote" your answer like on http://stackoverflow.com
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
© 2024 Created by Scott Davidson. Powered by