algorithmic modeling for Rhino
Oops. Back in a minute.
Brilliant. I knew there had to be a simpler way. I don't think it fully answers original question though. There still needs to be some spaghetti.
Simple mathematics (see Reino):
input = i
Round (i / 5)
Obviously round UP to the nearest integer. Done.
This is actually a very simple but very useful function to understand in programming if you were to ever get into it. Notice by changing the divisor you will affect the repetition cycle of your number sequence. Rounding down ('Floor' integer divide, vs 'Ceiling' as you need) has the same effect.
Beauty in the maths, not spaghetti. Also super efficient way of getting results from any computer system - avoid conditionals at all costs.
Thanks for explaining in detail. Very instructive.
Hi, I am number 9. nice to see you again.
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