Spiral Ramp/Helix along an organic geometry

Hi there, I’m having troubles trying to do a spiral ramp along this ‘tree shaped’ geometry while maintaining a 1:12 slope going up. When I try to offset the spiral curve and loft the two together to create the ramp, the surface becomes wonky and is no longer planar or ruled. My script is very basic, and i don’t even know if it makes sense or is even achieving what i want it to do. I just want to have the script so it can either read a geometry and create a 1:12 spiral ramp along it and then be able to adjust the width of the ramp by lofting the two curves together. and then i can add a ramp profile manually with a sweep. Is this possible? or how do i even do that? The footprint should be 20m D x 30m W x 20m H. I have a reference photo with a ramp that is 1:12 but it doesn’t follow the geometry but that is what i would like it to do.

Thanks!!





SPIRALSURFACE.gh (8.1 KB)
Spiral Ramp.3dm (1.1 MB)

Stair v0.gh (1.2 MB)

Thanks Quan,

But it’s not stairs. it should be a ramp that gradually goes up at a constant 1:12 slope around the geometry. And the geometry should be within these dimensions 20m D x 30m W x 20m H.

Hello
This is not an accurate way of doing as radius is changing along the height.
You can make an helix, like proposed by Quan Li
Knowing the slope, the height of the helix its radius and number of turn you can write

height/(2*pi*radius*numberOfTurn)= Slope/100

so

number of turn = (height/100)/(2*pi*radius*slope)

with that it is possible to make an helix and project it on your shape.


Ramp LD.gh (1.2 MB)

A more robust way of doing could be a calculation in order to have the angle needed for the rotation.

DeltaAngle(height) = (dZ*100)/(radius(height)*slope)


slope ramp v3.gh (71.3 KB)



Mixing Rhino/Grasshopper



And the Nautilus components, just for tests
slope ramp v3.gh (829.7 KB)

3 Likes

Hi Laurent,

This is amazing. Thank you! I couldn’t use the last GH script you supplied but the second one works! Do you mind explaining to me what this is verifying? or how do I verify that the slope is constant 1:12? But this is great. Thanks again!

I wanted to verify the “slope” of the curve by taking its tangent at different points, then measuring the angle to Z , the result has to be something like that 6.84° or or 83.15°

Angle (Tangent, Z) = \Pi/2 - ArcTan(slope/100)

A bit strange you couldn’t use the last ? Just skip the message, no need of install tools or whatever. I wanted to test some of my tools in Nautilus that allows to draw slope vectors on a mesh. Apparently it doesn’t work well at the moment, so I’ll have to understand if it is a bug or something else. The cool thing of theses component is they could allow to make ramp along a complex geometry.

@Davin thanks, your question allowed me to correct my tool. So now it works better.
So with my tools and a mesh you can have quite accurate slope around a shape. It will work well on the next update.

Just commentating Laurent’s work. The black and white images looks pretty perfect from where I’m sitting.

Thank you Laurent! I appreciate it and your tools looks great! I adjusted your script to get a 1:12 slope which is 8.333% = 1:12 instead of 12% but now it works wonderful. Thank you again!

1 Like