I’m reaching out today to share a Grasshopper script I created for a circular staircase (see attached image). I’ve been learning from various resources, including YouTube tutorials and the McNeel forum, and I’m eager to improve my efficiency and explore optimization techniques.
I’d be grateful if anyone in the community would be willing to review my script and offer suggestions circular stairs.gh (30.9 KB)
Whoa baby! That’s way too much GH code for such a simple end result. Here’s how I’d do it:
Make the shape for 1 step: triangle/surface/extrude Z to desired thickness.
Make circle with center pole radius/surface/extrude Z to the height of your staircase. This is your center pole.
SDiff 2 from 1: this makes 1 step.
Polar array #3 to make as many steps as you think you’ll need.
Make a Series that starts with the height of the first step, increments by the distance between steps, and has a count = the number of steps you want.
Use the results of #5 as the Z distance to move each step.
I’m sure you know that for a real spiral staircase you’ll have to add an outside railing and posts to hold it up. I believe GH has a built-in Spiral component you can use for this. You’ll have to decide how many posts you want and where they go. You can also make the steps more fancy by putting holes or other small cutouts in them, filleting edges, adding raised bumps, etc.
Do not use flatten, be very careful with simplify. Use shift paths/trim tree instead. Because now you can not create multiple of these staircases at the same time because of all those flattens.
thank you for replying sir . i followed the steps it worked . i checked for the spiral component in gh , i found there is spiral staircase component in fennec plugin , i will try to add more details to the stairs Uploading: image.png… Uploading: image.png(1)…
i didnt know that if i use simplify and flatten this would happen sir, i will keep this in check . i have doubt from long time , what is the difference between shift paths and trim tree. thank you answering sir