Random blocks around core

Skyscraper Study.3dm (3.1 MB)

Hello everyone,
I’m trying to create a grasshopper file that does what I attempted in the attached rhino file. I have 4 building units with 1 or 2 levels. Those are supposed to be placed around a hexagon building core in a random pattern as shown in the image/rhino file. Is there a way to solve this problem in Grasshopper?

Thank you for your help everyone!
Till

Hi @Till_Steinforth ,

random in height also?

I might be rusty but this was more difficult than I expected.



tower8_2024Mar16a.gh (60.8 KB)

Geometry is internalized, no need for Rhino file.

P.S. This model is written so that it’s easy to construct the tower core parametrically (white group):


tower8_2024Mar16b.gh (56.9 KB)

The same could be done with the “building units”, adjusting their width to match faces of the core.

1 Like

Wow. That is impressive! Thank you so much for this script! That helps a lot

There are several ways to do this but the “building units” above the core roof can be removed with a single Shift List component (yellow group) that removes the last box in each branch:


tower8_2024Mar17a.gh (48.9 KB)

Thank you thats very cool! Is there a way to specifically define how many units are added per unit type?

There is always a way… Would that be per face of the core? Because that’s how it works now. Any change is something you must understand - and implement. :slightly_smiling_face:

Yeah. It’s hard for me to understand everything to the fullest that why I really enjoy getting help here in this forum. Trying to learn.

Not per face of the core.
I would like to have it for the total number per unit.

Your requirements now are significantly different than they were when I started. Not that there is a single way to do this - far from it! But if you don’t understand it now, it isn’t likely that you’ll understand any changes either…

Assuming you still want the number on each face to be limited by the core height, this question springs to mind: what happens if the number of units is too many (or too few) to fit around the core?

One way to approach this would be to make a single list of all 50(?) units and jitter (radomize) it, then partition the list (split into branches) based on how many are needed to exceed the core height.

But again, that’s significantly different than how it works now. :thinking:

Yes, you are right!

the core height should not be limited at all. The higher the unit count becomes the taller the core becomes ideally. Could that be built into the already existing script?
The core also can be added in rhino after easily if needed. So that part wouldn’t need to be perfect.

Ideally, the core is constructed parametrically with number of faces being a parameter - as I did.

2 Likes

Yeah ideally.

Reality check. Using the last code I posted with eight faces on the core that is 200 units high, there are 68 units (boxes). So only 50 units as in today’s spec wouldn’t reach the top of the core - let alone an unlimited height.