-
-
Notifications
You must be signed in to change notification settings - Fork 4k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[PD] add feature to create tapered Pad / Pocket #5357
Conversation
821b330
to
9148d80
Compare
6f76af8
to
8a85e15
Compare
a95b4e8
to
c59a1ba
Compare
@berndhahnebach, I made another commit to fix the CI build failure, can you therefore please trigger another CI run on this PR? |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
There seem to be some missing headers when not using _PreComp_
.
@berndhahnebach I need another CI run please |
72f3865
to
3413c5e
Compare
7de678d
to
3e8adc1
Compare
@berndhahnebach give me another CI run please I realized now that the CI does not use precompiled headers. Since I do, I don't see the compilation failures due to missing headers. |
fdc463f
to
6bcefcf
Compare
The main question to me is do we really need this feature directly for pad/pockets? To me this makes FeatureExtrude to be a so called god class that provides functions that should be better kept in a separate class. When looking at some online available docs about commercial systems (http://catiadoc.free.fr/online/prtug_C2/prtugbt0501.htm) then there is no such option either. This function is already part of the draft feature (http://catiadoc.free.fr/online/prtug_C2/prtugbt0612.htm) and you can achieve the very same effect. |
Sure, otherwise I would not have spent so much time on this ;-). In my working field Solidworks is used by most companies around and this also provides the feature: You spoke about a "god" class, but I only implemented what part Extrude for years. And I could understand the users who asked why Part has a basic feature that PD does not provide. Therefore implementing this was for a long time on my Todo-list. While working on it during the whole last week, I realized its power. One can save a lot of time in constructing because one saves the work to make lofts. Here is the thread that eventually triggered my action: https://forum.freecadweb.org/viewtopic.php?f=3&t=64795&start=30 p.s. no fear. I am not planning to include the thickness feature to Pad/Pocket. |
6bcefcf
to
ca78537
Compare
841a38a
to
b671d2d
Compare
OK, this PR is now adapted to current master. The functionality nothing has changes, the PR inherits Part's Extrude code for tapered extrusion. However, as wished in the forum, it does now support inner structures as Part does since today. Anyone, please give it a try. |
9e571db
to
c7519c4
Compare
That was opening in QtCreator. |
fd203f3
to
7919050
Compare
That seems to have fixed it. |
624a5e1
to
730b112
Compare
Thanks. I found meanwhile a minor issue, fixed this and rebased to trigger the CI. |
Here is a Windows build with the PR on top of the current master to try out the PR without the need to compile: https://github.com/donovaly/FreeCADInstProj/releases/tag/0.20r27327%2B1 |
@donovaly Thanks for your work here! I have a general question though: From a brief look at the diffs I get the impression that the |
It seems so. However, any further code shifting should be done in a separate PR. This PR here is already huge and the important thing is the new functionality of tapered extrudes. Therefore the focus is on that code part. Later I plan to shift more code around, for example Part and PD have the same features to pad along a certain direction and this code can later be put into the new helper file I introduced with this PR. |
2275676
to
afed429
Compare
This PR adds the same functionality as provided by Part Extrude. The used code parts are sorted out to a new helper function that is used by Part and PartDesign.
afed429
to
10375db
Compare
OK, I think it is time to make the move to merge. |
This PR adds support for tapered extrudes.
This was from time to time requested in the forum since other CAD programs and also Pad's Extrusion provides this feature.
Forum thread to discuss it: https://forum.freecadweb.org/viewtopic.php?f=17&t=65124
Here is it in action:
The PR treats Pad and Pocket the same way, so Pocket has the same feature: