# Dividing a spiral staircase glass balustrade in to equal lengths with gap in between

Hi Guys,

I am trying to build a staircase using only grasshopper.

Until now I was able to do this. But as you can see I have not achieved the gap in between the balustrades. What is the best way to do this?

Spiral Staircase (DG)gh.gh (47.9 KB)

One per step?

Can be two or three steps.

This got a little carried away, maybe thereâs something simpler? And there is an off-by-one error at the bottom that I donât yet know how to fix.

Spiral Staircase_2021_Jul11a.gh (63.0 KB)

P.S. Fixed off-by-one error with Shift List (yellow group)

Spiral Staircase_2021_Jul11b.gh (70.9 KB)

I just noticed that the inner balusters are offset in the wrong directionâŚ

Fixed that:

Spiral Staircase_2021_Jul11c.gh (72.7 KB)

But noticed that the balustrade surface diverges from expected curvature at the top, caused by Extend Curve in your code. Iâll let you fix that.

1 Like

I have just used Rhino until now but I have just started using Grasshopper. So thank you so much for your help. I am currently trying to understand how the components work. Iâll get back to you via DM if I have any other doubts!

There is a slight misalignment (~1 cm?) between the balusters and the steps, caused by the â1â value connected to the âStartâ input of Extend Curve (two of them). I think itâs best though that you understand and fix these issues.

This shows Extend Curve âStartâ inputs set to zero, âGapâ slider set to 0.5, alignment fixed, though not the only wayâŚ

Nice little brackets holding the balusters, by the way.

Thanks for your kind comments Joseph. I was able to clean up the script a little more and make the bracket more aesthetic. But I havenât yet been able to solve the extend curve issue which make my helix diverge from the original curvature. Whatâs the best way to approach this problem?

Spiral Staircase_(2021.07.12).gh (60.2 KB)

I donât recognize the code anymore and the part that I wrote is broken. The balusters are not âsolidsâ.

Mine:

Yours:

Thatâs an extremely important detail! Iâm not going to proofread your code to figure out what went wrong, sorry, Iâve probably done too much as it is. Pottery Barn Rule: you break it, you own it.

Sorry about that. I was trying to understand how it work and I missed a connection. I fixed it. Thanks for pointing it out!

Spiral Staircase_(2021.07.12).gh (63.2 KB)

1 Like

This image alone was the clue that something was wrong. Notice the reddish edge and yellow surface on the right baluster? That told me that the two werenât joined properly into a single âClosed Brepâ.

As to extending the spiral curves, I donât have a ready answer and am not inclined to find one. There are many possibilities that might involve substantial changes to your code and itâs better for you to resolve details like this yourself. The slight gap misalignment I mentioned can be solved in other ways too when you really understand what the code is doing.

The results you have achieved so far are quite good so keep at it, donât get stuck by fixating on the first idea that comes to mind (extending those curves).

Thank you very much! Iâll keep at it.

If you add 1 to the count inputs of the 3 Series components that generate your spiral, you can bypass the 2 Extend Curve components.

I left the Extend Curve components in place, but bypassed them. They can be deleted.

Spiral Staircase_(2021.07.12)_re.gh (68.1 KB)

-Kevin

1 Like

Good thinking but it results in one extra step, which could be culled since that top step is supposed to be the top floor, eh?

I was confused at first because your steps appeared to be slightly larger than my version âcâ (rotation âStepâ value of 17.14 degrees in yours, 16.36 in degrees mine) but traced that to different values for ânumber of divisionsâ (21 in yours, 22 in mine). Easily âfixedâ by using 21 (or 22) for both.

This raises a couple of practical issues though.

1. In the real world, tread height of steps and number of steps is determined by the difference in height between the bottom floor and top floor, which is a fixed distance input. I see no place for that in this model?

2. Likewise, the rotation step value is ânegotiableâ in the sense that one might want to specify the bottom and top step angles where the staircase starts and stops, then calculate a rotation step value that might not yield an integer number of steps in 360 degrees. You can see this by changing the ânumber of divisionsâ slider from Integer to Real and using a value of 21.25 divisions per 360 degrees, for example.

Speaking of âthe real worldâ, I have a question for @dudemamu9: What secures the top of these balusters in place? I love the brackets at the bottom but what keeps them from falling over? Also, what supports the steps? DetailsâŚ

1 Like

Hey Kevin,

Thanks for this solution. Will update my script based on this.

-dudemamu9

Hey Joseph,

1. Yes you are right. But I can solve this by adding a floor height and divide it by number of steps. I guess thatâs why I did not concentrate on that aspect in the beginning.

2. Thatâs on purpose because most the scripts only deal with 360 degrees but in real world I wanted the staircase to end at a different position than the start. You are right there needs to be another input somehow to calculate it automatically and probably input for the degree like you suggested.

The staircase I am trying to build is based on this image. There are additional brackets that connect the balusters together. And of course in real world there is a lift shaft in between to which these stairs are connected to. But I havenât built that in to my script. Hope this makes sense.