algorithmic modeling for Rhino
Hello everyone,
Im currently struggling to generate different Boolean patterns to dispatch based on a IF condition.
So for example,
if nr of points=4 True, False, False, True
if nr of points=6 True, False, True, True, False, True
What I want to achieve is symmetry. Thats why in every even number of points the patter must change.
This image shows 6 vertical points, but its not symmetrical.
I have uploaded my def, its quite simple.
Thanks for any help!
Tags:
Hi again,
in cases like this, the use of "IF" and booleans is un-handy.
You would have to make an IF for every possible length...
To achieve a symmetrical pattern i did this:
Start repeating the base pattern (true,false) from "both sides", one at start and one at end of you final total length "L" desired pattern.
As sometimes L could be uneven, from one side (A) repeat base pattern until it reaches L/2 rounded up, and from the other side (B) until it reaches L/2 rounded down.
Then simply merge together (pattern A) with (flipped pattern B) to get the full size pattern.
Cya!
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
Added by Parametric House 0 Comments 0 Likes
© 2024 Created by Scott Davidson. Powered by