Seeking Feedback on Grasshopper Script for Circular Staircase

Hi everyone,

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
image
circular stairs.gh (30.9 KB)

2 Likes

Whoa baby! That’s way too much GH code for such a simple end result. Here’s how I’d do it:

  1. Make the shape for 1 step: triangle/surface/extrude Z to desired thickness.
  2. Make circle with center pole radius/surface/extrude Z to the height of your staircase. This is your center pole.
  3. SDiff 2 from 1: this makes 1 step.
  4. Polar array #3 to make as many steps as you think you’ll need.
  5. 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.
  6. 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.


stairs.gh (14.4 KB)

1 Like

Simplify! Leave the layout code for later. Use derived dimensions.

For example:


circular stairs_2024Mar3a.gh (15.5 KB)

WiFi trouble today, can’t stay connected…

Height of center pole is determined by number of steps, which can exceed the number of divisions of the circle.

1 Like

Spiral staircase…

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

thank you for revewing , giving simple steps .i read the script, learnt what to do and what to avoid