[Solved] Project a 2D and 3D Stair representation since 1D elements

Post here for help on using FreeCAD's graphical user interface (GUI).
Forum rules
and Helpful information
IMPORTANT: Please click here and read this first, before asking for help

Also, be nice to others! Read the FreeCAD code of conduct!
paullee
Veteran
Posts: 5118
Joined: Wed May 04, 2016 3:58 pm

Re: Project a 2D and 3D Stair representation since 1D elements

Post by paullee »

ABeton wrote: Fri Apr 16, 2021 11:13 am Hello, those are some good looking stairs :) I attached a file of an idea I had how to do the stairs, you might want to check it out. It could perhaps be made fully parametric if some obstacles are overcomed. I did them in the Link FreeCAD so I hope you won't have problem oppening the file.
Thanks @ABeton !

Looks to be a good algorithm to do a non-regular stairs! :D


Question:
- trying to look how it is done, recompute() the PathArray / RuledSurface (e.g. 006 / 007), the RuledSurface seems not like the orginal.
- then, the extrusion go wrong
- what is your FC version? (I learnt the PathArray had be revamped)
Thanks.
Screenshot from 2021-04-17 01-27-56.png
Screenshot from 2021-04-17 01-27-56.png (220.96 KiB) Viewed 509 times
Screenshot from 2021-04-17 01-30-08.png
Screenshot from 2021-04-17 01-30-08.png (231.51 KiB) Viewed 509 times
ABeton
Posts: 150
Joined: Tue Sep 03, 2019 6:39 pm

Re: Project a 2D and 3D Stair representation since 1D elements

Post by ABeton »

paullee wrote: Fri Apr 16, 2021 5:33 pm
ABeton wrote: Fri Apr 16, 2021 11:13 am Hello, those are some good looking stairs :) I attached a file of an idea I had how to do the stairs, you might want to check it out. It could perhaps be made fully parametric if some obstacles are overcomed. I did them in the Link FreeCAD so I hope you won't have problem oppening the file.
Thanks @ABeton !

Looks to be a good algorithm to do a non-regular stairs! :D


Question:
- trying to look how it is done, recompute() the PathArray / RuledSurface (e.g. 006 / 007), the RuledSurface seems not like the orginal.
- then, the extrusion go wrong
- what is your FC version? (I learnt the PathArray had be revamped)
Thanks.

Screenshot from 2021-04-17 01-27-56.png
Screenshot from 2021-04-17 01-30-08.png
I attached some images below, I hope they explain it a little better. And the Path Array didn't work well for me in regular FreeCAD, all the lines were messed up(I see the same in your screenchots), so I used the Realthunder's version of FreeCAD.
1.png
1.png (216.82 KiB) Viewed 502 times
2.png
2.png (239.71 KiB) Viewed 502 times
3.png
3.png (234.93 KiB) Viewed 502 times
4.png
4.png (251.25 KiB) Viewed 502 times
5.png
5.png (254.98 KiB) Viewed 502 times
ABeton
Posts: 150
Joined: Tue Sep 03, 2019 6:39 pm

Re: Project a 2D and 3D Stair representation since 1D elements

Post by ABeton »

7.png
7.png (235.66 KiB) Viewed 500 times
8.png
8.png (228.63 KiB) Viewed 500 times
9.png
9.png (242.75 KiB) Viewed 500 times
6.png
6.png (238.21 KiB) Viewed 500 times

I think this principal has potential to become fully parametric, but there are couple of obstacles:
- Path Array command should have the option to incrementaly displace each line on Z axis(in this case I moved everything manualy)
- I am not sure if it is possible to automaticaly select each element in the array in a consecutive order and in this way generate all the ruled surfaces

Maybe there is something more that would be needed to make a functional one click stair command, but I don't have a lot of programing knowledge so I don't know. I could use some sugestions about it.

OS: Windows 10 Version 1909
Word size of OS: 64-bit
Word size of FreeCAD: 64-bit
Version: 2021.412.22506 +5327 (Git)
Build type: Release
Branch: LinkDaily
Hash: d41e78fe7f9b54eea5977df0a7344331f08445e8
Python version: 3.8.6+
Qt version: 5.15.2
Coin version: 4.0.1
OCC version: 7.5.0
Locale: English/United Kingdom (en_GB)
paullee
Veteran
Posts: 5118
Joined: Wed May 04, 2016 3:58 pm

Re: Project a 2D and 3D Stair representation since 1D elements

Post by paullee »

ABeton wrote: Fri Apr 16, 2021 7:47 pm I think this principal has potential to become fully parametric, but there are couple of obstacles:
- Path Array
Thanks, I see the worflow, this should be able to be automated.

Hope can implemented someday :D
jtm2020hyo
Posts: 594
Joined: Wed Aug 12, 2020 1:24 am

Re: Project a 2D and 3D Stair representation since 1D elements

Post by jtm2020hyo »

ABeton wrote: Fri Apr 16, 2021 7:47 pm

the winner
jtm2020hyo
Posts: 594
Joined: Wed Aug 12, 2020 1:24 am

Re: [Solved] Project a 2D and 3D Stair representation since 1D elements

Post by jtm2020hyo »

ABeton wrote: Fri Apr 16, 2021 7:47 pm
7.png
8.png
9.png
6.png

I think this principal has potential to become fully parametric, but there are couple of obstacles:
- Path Array command should have the option to incrementaly displace each line on Z axis(in this case I moved everything manualy)
- I am not sure if it is possible to automaticaly select each element in the array in a consecutive order and in this way generate all the ruled surfaces
for a parametric control, IMHO we need to use Sketcher WB for XY axis and for z-axis we need Draft WB, I call this edgebinder and pointbnder, with we could already not break anything, I hope we can have this support in the future.

https://forum.freecadweb.org/viewtopic.php?f=3&t=56433

edit: just I wish to mention that RuledSurface does not work like a parametric object, maybe a bug
Post Reply