Staircase generator plug-in

This topic has been viewed 1147908 times and has 72 replies
Thread status: Active
Test the features and bug fixes of future versions [img]http://www.sweethome3d.com/images/flags/en_small.gif[/img]
User avatar
dorin
Posts: 824
Joined: Thu Apr 24, 2014 9:14 am
Country: Vatra Dornei, Suceava, Romania

Re: Staircase generator plug-in

Post by dorin »

@architectech
As Keet said You don't disturb anyone.
I considering you as a friend and, as friend, I prefer to talk with you short and frankly, not politically correct.
Probably I'm wrong. I'm sorry if I offense you somehow!
Somewhere you've said "My problem is I'm an architect".
That's not a problem, not your true problem.
I think your expertise in this area is invaluable for us, for the majority of SH3D users. You could help and advice us in this sense.
IMO your true problem is that you came from ArchiCAD with the accordingly heritage.
I think it is like you have drive last past 10 years a modern fully automatic car and, for some reasons, you can't used anymore (let say irremediable broken).
Someone give you for free an old but functionally car. Well, is not the same:
Have clutch, only 4 manual gear, no break and direction aid and assistance BUT fit the main condition: exist.
Next optionally conditions: work and is free.
Well, it don't came totally free of problems. You have to remember the old times when you've drive something like this. That's is!
Just for my curiosity: how long took to you to learn to use ArchiCAD?? and how many help you've received from the ArchiCAD community?
I've tried to use it in the past (~20 years ago) but I've quickly realize I'm too dump for this.
It need more brain and knowledge (architecture studies) and I'm in lack of both.
So for me the SH3D is the perfect compromise.
With SH3D I'm able to make planes very close as those made by some of my colleagues with ACAD.
Indeed with more work and effort in some parts.
Finally I hope you will still be here at least time-to-time with some advice's for us.
A computer program does what you tell it to do, not what you want it to do. Murphy's Law
When all else fails, read the instructions. Murphy's Law
If you don't like "AS IS", DIY. Dorin's law
kregai
Posts: 1
Joined: Thu Mar 07, 2024 9:08 am
Country: India

Re: Staircase generator plug-in

Post by kregai »

Wonderful plugin. Thanks.

Wanted to check if the following is possible

I want a staircase with three flight around and elevator. The outer dimensions of the elevator hoistway is 5'x6'x5'. The total ceiling height is 11'. The staircase should go in the clockwise direction.

Many thanks in advance for any input or direction that anyone has/provides.
greatway
Posts: 2
Joined: Sun Jun 23, 2024 2:07 pm
Country: United Arab Emirates

Re: Staircase generator plug-in

Post by greatway »

thank you :)
Segadreamer
Posts: 1
Joined: Tue Jul 23, 2024 6:01 pm
Country: España

Re: Staircase generator plug-in

Post by Segadreamer »

Just came to say thank you!!
rococo22
Posts: 1
Joined: Mon Oct 07, 2024 12:00 pm

Re: Staircase generator plug-in

Post by rococo22 »

Thank you for this!!!
User avatar
Xlance
Posts: 122
Joined: Mon Mar 23, 2020 8:36 am

Re: Staircase generator plug-in

Post by Xlance »

Good Day
I managed to add to the plugin 4 more parameters for stair generation. 4 more are work in progress (actually all are welcomed to complete the task as it's a bit beyond my expertise ;-)

Working:
* Sides Count : Controls number of sides of Baluster (ex: 4 sides for square, 2 sides for thin glass panels, 32 sides for circular ... etc.)

* Handrail Width : Controls width of upper Handrail.

* Foot Depth : Controls depth of footing under first step.

* Baluster Gap : Controls spacing between balusters.

Need to be completed
-Left Stringer Thickness
-Right Stringer Thickness
-Handrail Bracket Diameter
-Handrail Bracket Height

If interested drop me a line and I'll send the updated version.


https://imgur.com/a/b6tn0jG

Windows 64bit | Intel i7 | 8GB Ram | SH3D 7.5 + Plugins
User avatar
Xlance
Posts: 122
Joined: Mon Mar 23, 2020 8:36 am

Re: Staircase generator plug-in

Post by Xlance »

OR simply download the plugin from:

https://www.mediafire.com/file/mzhxnv1n ... .sh3p/file

Windows 64bit | Intel i7 | 8GB Ram | SH3D 7.5 + Plugins
User avatar
dorin
Posts: 824
Joined: Thu Apr 24, 2014 9:14 am
Country: Vatra Dornei, Suceava, Romania

Re: Staircase generator plug-in

Post by dorin »

Could someone verify this?
With this input data:
Image
I have this output for cut out shape
Image
I suppose the problem is between lines 1149~1156

Code: Select all

} else if (spiralStaircaseAngle <= Math.PI) {
   float width = (1 - cosAngle) * spiralStairOuterRadius;
   float height = spiralStairOuterRadius + treadDelta;
   cutOutShape = "M 1," + (height - treadDelta) / height
        + " A " + spiralStairOuterRadius / width + "," + (height - treadDelta) / height + " 1 0,0 0," + (1 - sinAngle)
        + " L " + cosAngle * (spiralStairInnerRadius - spiralStairOuterRadius) / width + "," + (spiralStairOuterRadius - sinAngle * spiralStairInnerRadius) / height
        + " A " + spiralStairInnerRadius / width + "," + spiralStairInnerRadius / height + " 1 0,1 " 
           + -cosAngle * (spiralStairOuterRadius + spiralStairInnerRadius) / width + "," + (height - treadDelta) / height
        + " z";
It happened only in this range 90~180 degrees with inner radius > half pole.
As you can see there is a lot of math which I don't know.
Any opinion (or help) is highly appreciated.
Thanks in advance!
A computer program does what you tell it to do, not what you want it to do. Murphy's Law
When all else fails, read the instructions. Murphy's Law
If you don't like "AS IS", DIY. Dorin's law
User avatar
Daniels118
Posts: 503
Joined: Wed Nov 17, 2021 9:04 pm
Country: Italy

Re: Staircase generator plug-in

Post by Daniels118 »

What measurement is "half pole"?
User avatar
dorin
Posts: 824
Joined: Thu Apr 24, 2014 9:14 am
Country: Vatra Dornei, Suceava, Romania

Re: Staircase generator plug-in

Post by dorin »

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
A computer program does what you tell it to do, not what you want it to do. Murphy's Law
When all else fails, read the instructions. Murphy's Law
If you don't like "AS IS", DIY. Dorin's law
Post Reply New Topic

Who is online

Users browsing this forum: No registered users and 1 guest