Grasshopper

algorithmic modeling for Rhino

Hi,
How can I add the value first number in the series in my script?
Thank you

Views: 263

Attachments:

Replies to This Discussion

Hi Mirco,

this should do:

 

//List of integer values, with a default capacity of (C) elements
List<int> result = new List<int>(C);

for (int i = 0; i < C; i++)
   result.Add(i * N + S); //add to the result list

O = result;

i is less than C is the loop invariant.
S shifts all results, setting a start when i equals 0, soi * N equals 0, too.

This page contains the full specification.
- Giulio
____________________
giulio@mcneel.com
McNeel Europe, Barcelona
Attachments:

Super Giulio!!

Thank you

RSS

About

Translate

Search

Videos

  • Add Videos
  • View All

© 2024   Created by Scott Davidson.   Powered by

Badges  |  Report an Issue  |  Terms of Service