Turning ramps into stairs using Grasshopper

Hi there!

I have multiple ramps in my architectural design and would like to turn these into stairs (both pictured below) and I thought using Grasshopper to do so would be a good idea to not only improve my GH skills but also to make it faster process overall.


I have tried a bit using the following GH but am a bit stuck… (There’s no need at all to follow my current GH, especially as I feel like it’s not necessarily a good start aha)
20220818 Grasshopper.gh (14.8 KB)

I’m attaching my current architectural design just for reference!
ref.3dm (15.5 MB)

Thanks so much!

I would approach this problem this way. I’m not doing the actual steps because there are several issues common to steps, like making all risers the same height, all treads as deep as possible, etc. That U-shaped “ramp” also requires special treatment.


step_ramp_2023Jan8a.gh (12.6 KB)

P.S. I tried a “simple” method of turning the contour lines into steps but as expected, the top step often fails because there is no effort made to fit the steps for each flight… I added something that derives a different riser value for each set of steps but it’s more complicated than that.

This is added to the model above:


step_ramp_2023Jan8b.gh (23.3 KB)

2 Likes

Hi @Joseph_Oster! Thanks so much for your help! I’ll have a look at these – might take a while for me to understand each block :sweat_smile: