algorithmic modeling for Rhino
Hi everyone.
I'm trying to recreate this model in an algorithmic way in Grasshopper. Mainly the boxes that are sometimes rotated.
What I'm able to do is create a row of boxes and rotate one, then move the others so they don't overlap. I'll attach my current files to this post.
What I can't seem to figure out how to do is how to select several of them to rotate and moving the rest to be in the correct position.
Is there a better way of going about this?
Is there a way to generate a sequence with a pattern, like: true (rotated), false (not rotated), false, true, false, etc.? And then to say: if the current item is false, but the previous was true, then move it by a certain amount?
I'm pretty new to Grasshopper, so any advice you can give would be great.
Thanks!
Tags:
You don't need a Rhino file for the origin point.
If I understand you correctly, here's a way:
The yellow panel contains a list of rotation angles (in degrees). That could be replaced by a series of control knobs but note that "0" must be specified for boxes that don't rotate.
A copy of the original box is rotated in place at the origin for each angle in the list. Then a bounding box for each rotated copy is used to determine its new resulting X dimension. The 'Pr (Partial Results)' of 'MA (Mass Addition)' is used to create a series of destination points. The bottom face of the 'BBox' is used to get the four bottom vertices, which are sorted by X. The minimum X value is used to calculate how far each box needs to be moved (the difference between its destination point and the minimum X value).
Hi Joseph,
Thank you so much for these incredibly detailed responses. I'm going to try my best to understand what you did here so I can use it properly.
Welcome to
Grasshopper
Added by Parametric House 0 Comments 0 Likes
Added by Parametric House 0 Comments 0 Likes
© 2025 Created by Scott Davidson. Powered by