[Working Macro][work in progress] Curved Path Stairs

A forum dedicated to the Draft, Arch and BIM workbenches development.
Forum rules
Be nice to others! Respect the FreeCAD code of conduct!
paullee
Veteran
Posts: 5098
Joined: Wed May 04, 2016 3:58 pm

Re: [Working Macro][work in progress] Curved Path Stairs

Post by paullee »

balrobs wrote: Mon Jan 31, 2022 9:32 am Exactly!
Here some promised pics of my oval stair. (unfortunately not done with FOSS :cry: )
Thanks, good to know the principle and it would be consistent with existing attribute :)

With you oval stair, seems both either sides does not define the direction of the flight / treads - so my above concept of introducing a dedicated wire for 'path'/'axis'/'direction' of flight and another closed wire for the 'outline' of the flight is required for your case right ?
balrobs
Posts: 449
Joined: Fri Apr 24, 2020 8:58 pm

Re: [Working Macro][work in progress] Curved Path Stairs

Post by balrobs »

paullee wrote: Mon Jan 31, 2022 10:07 am ...
With you oval stair, seems both either sides does not define the direction of the flight / treads - so my above concept of introducing a dedicated wire for 'path'/'axis'/'direction' of flight and another closed wire for the 'outline' of the flight is required for your case right ?
Yes, I think your concept could be an ideal solution. :D
When the dedicated wire for 'path/axis/direction' - I call it "walking path" - overlaps the outline wire, we would fall back to the actual situations.
All steps would have same treads-length along the walking path and intersect with it at right angles.
However, when generating the steps, we would have to make sure that they don't intersect within the closed wire for the 'outline'.
paullee
Veteran
Posts: 5098
Joined: Wed May 04, 2016 3:58 pm

Re: [Working Macro][work in progress] Curved Path Stairs

Post by paullee »

Thanks for the input.
paullee wrote: Sun Jan 30, 2022 3:35 am ...making the bottom as a 1 continuous curvilinear surface instead of current faceted faces of flat bottom surface of every tread...
Just proof of concept... :)
  1. Generate each Tread face as in this original Macro
  2. Extrude downward by a certain extent
  3. Obtain 1st and last edge of the flight
  4. Sweep along the chosen path from the 2 edges
  5. Extrude downward by a certain extent as a subtraction volume
  6. Boolean cut each treads by this subtraction voume
Then a continuous surface should be obtained.


Screenshot from 2022-02-01 00-53-26.png
Screenshot from 2022-02-01 00-53-26.png (233.24 KiB) Viewed 1180 times
Screenshot from 2022-02-01 00-56-00.png
Screenshot from 2022-02-01 00-56-00.png (302.05 KiB) Viewed 1180 times
Screenshot from 2022-02-01 01-00-06.png
Screenshot from 2022-02-01 01-00-06.png (238.4 KiB) Viewed 1180 times
Screenshot from 2022-02-01 01-00-44.png
Screenshot from 2022-02-01 01-00-44.png (254.58 KiB) Viewed 1180 times
Screenshot from 2022-02-01 01-03-53.png
Screenshot from 2022-02-01 01-03-53.png (260.58 KiB) Viewed 1180 times
Screenshot from 2022-02-01 01-09-09.png
Screenshot from 2022-02-01 01-09-09.png (256.62 KiB) Viewed 1180 times
Screenshot from 2022-02-01 01-13-30.png
Screenshot from 2022-02-01 01-13-30.png (270.24 KiB) Viewed 1180 times
ABeton
Posts: 150
Joined: Tue Sep 03, 2019 6:39 pm

Re: [Working Macro][work in progress] Curved Path Stairs

Post by ABeton »

Hey guys, I have not visited the forum in a while, did not work much with FreeCAD in the last months. Wow, you guys really improved the algorithm, great work :D I thought the stairs were dead and buried :lol:
User avatar
duncan.lithgow
Posts: 42
Joined: Sat Jan 11, 2014 6:29 pm
Location: Denmark
Contact:

Re: [Working Macro][work in progress] Curved Path Stairs

Post by duncan.lithgow »

I'm not sure about the best place to post this but I thought FreeCAD enthusiasts working with stairs would like to know about this Japanese tweet about a stair macro: https://twitter.com/pascal999ef/status/ ... 7931326467
Post Reply