Re: Staircase generator plug-in

by dorin » Tue Feb 04, 2025 8:23 pm

Hi Daniele,
At line 1078

Code: Select all

float poleWidth = getDefaultPoleWidth(StaircaseType.ROUND_SPIRAL, treadThickness, treadThickness);

At line 2246~2249

Code: Select all

  private static float getDefaultPoleWidth(StaircaseType staircaseType,
                                            float stringerThickness, float handrailWidth) {
     return 5 * stringerThickness;
   }
In my sample Thickness = 1.5 cm. (default value)
That mean half pole = 1.5*5/2=3.75 cm.
If inner radius is bigger than half pole the plugin will don't compute an cylindrical pole but a hole in the center of the spiral staircase.
In the part for generating cut out shape strings this two cases are treated separated.

The major problem is with the end point of the second arc.
In some circumstances even the end point of the first arc is not quite accurate.
A workaround is to set the X of the end point of the second arc like:

Code: Select all

(width-(spiralStairOuterRadius - spiralStairInnerRadius)) / width