2
$\begingroup$

I am trying to create a stairway using an archimedian bezier curve. enter image description hereenter image description here

This is my node network enter image description here

I am trying to perfectly align/size the individual steps to avoid the gaps inbetween as shown below. Can someone please help? Thanks in advance.enter image description here

$\endgroup$

2 Answers 2

5
$\begingroup$

Maybe it would be better to generate the steps from the spiral, than to try to warp existing steps to shape? Maybe some variation on this.

Here's a group that converts a spiral to a block-staircase:

enter image description here

The strategy:

  • Resample the spiral to the desired step-length
  • Convert to mesh, split edges, scale each edge to 0 in Z about its bottom vertex
  • Extrude edges radially to desired step-width
  • Extrude resulting faces upward by the height of the split edges, before they were scaled.

The step-height is determined by step-length, and spiral height. The group can cope with spirals of varying radius. A couple of extra nodes, scaling the flattened edges along their length, could give you an overlap between the blocks.

enter image description here

Edit:

Following commentary, here's an adaptation of the group to work with an externally generated spiral:

$\endgroup$
5
  • $\begingroup$ Thanks for your efforts. I too had tried that approach first. But it did not match my requirements of how the stairway should be fit in the overall model. Hence i had to use the curve object outside the geometry nodes. $\endgroup$
    – R M K
    Commented Nov 2, 2022 at 5:21
  • $\begingroup$ Hi, @RMK ! See edit, for a first shot at the group, re-jigged to modify an externally- generated spiral. It does still assume the spiral is circular in XY, and up Z. $\endgroup$
    – Robin Betts
    Commented Nov 2, 2022 at 8:18
  • $\begingroup$ sorry for the delay in response. Yes, that works. Can you please tell as why you mentioned it needs to be circular in XY?. This is what i tried. i.sstatic.net/10VAq.png $\endgroup$
    – R M K
    Commented Nov 3, 2022 at 11:42
  • $\begingroup$ Hi @RMK It's just that the way the curve is sampled along its own length, if the gradient is not constant-per-edge, you can get irregular step-heights. $\endgroup$
    – Robin Betts
    Commented Nov 3, 2022 at 14:18
  • 1
    $\begingroup$ Irregular step heights? Wow. That is exactly how i wanted. This was missing from my answer as it extruded by a constant height. Thanks $\endgroup$
    – R M K
    Commented Nov 3, 2022 at 15:17
3
$\begingroup$

Although this is not a perfect solution, here is an update

enter image description here enter image description here enter image description here

$\endgroup$

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .