wmayer
215eeb0afa
PD: [skip ci] in the helix dialog use step size of 5 degree for the angle
2021-03-04 11:09:54 +01:00
donovaly
feabd1af30
[PD] use same helix angle step as for other features
...
All other PD features use a step size of 1.0 for angles.
(Personally also for me a step of 5 is not convenient)
2021-03-04 11:08:41 +01:00
donovaly
21d4a37e1f
[PD] set App constraints for their Gui counterparts
...
based on Werner's work yesterday, this PR takes care of the missing PD features to use the constraints already defined in App
2021-03-04 11:03:24 +01:00
wmayer
cffe8d19fd
PD: [skip ci] in the helix task dialog use the value range defined in the helix feature
2021-03-03 17:40:11 +01:00
donovaly
fc36ab6c64
[PD] set constraints for helix properties
...
at the moment it is possible by a click to set e.g. -1 turn which would cause an error
2021-03-03 17:25:40 +01:00
David Osterberg
34a44073c1
PartDesign: Allow customization of Helix preview modes
2021-03-03 17:15:08 +01:00
M G Berberich
ba5c438ec2
[PD] fixes problem with the path for user-defined hole-cut-types
...
https://forum.freecadweb.org/viewtopic.php?f=19&t=51403&start=20#p482574
2021-03-03 16:02:17 +01:00
donovaly
1376931758
[PD] make constraints static class member
...
the MSVC IDE warned me about different floatAngle definitions in PD
2021-03-03 15:58:22 +01:00
donovaly
ab29cf5740
[PD] attempt to use more reasonable angle limit for drafts
...
using e.g. 89.999 as angle works. It might not be useful in real life, but the 89.99 seem arbitrary.
2021-03-03 15:56:21 +01:00
wmayer
3afe40d8ce
PD: AddressSanitizer: heap-use-after-free
...
Fix crash inside TaskDlgSketchBasedParameters::reject()
2021-03-03 15:53:12 +01:00
wmayer
70ca3580a1
PD: improve task panel for revolution/groove:
...
* set range Angle property to spin box
* connect signals after initializing widgets to avoid superfluous recomputes
2021-03-03 15:42:48 +01:00
wmayer
6364a4cb7d
PD: [skip ci] set value range to angle spin box
2021-03-03 15:22:53 +01:00
wmayer
ea0f95739b
PD: [skip ci] fix angle checks for groove and revolution
2021-03-03 14:56:16 +01:00
wmayer
86751fd944
PD: [skip ci] set angle constraints for groove
2021-03-03 14:55:19 +01:00
donovaly
2caa07c291
[PD] disallow angles <=0 for holes and revolution
...
neither the taper, drill or countersink angle can be zero or negative for a valid hole, thus set a constraint
2021-03-03 14:33:01 +01:00
wmayer
07a59e242d
PD: [skip ci] fix angle check in PolarPattern::getTransformations()
2021-03-03 10:39:41 +01:00
wmayer
dd31be3b19
PD: improve task panel for polar patterns:
...
* set range of Occurrences property to spin box
* connect signals after initializing widgets to avoid superfluous recomputes and possible inconsistencies
2021-03-03 10:32:46 +01:00
wmayer
7b43f7e996
PD: improve task panel for linear patterns:
...
* set range of Occurrences property to spin box
* connect signals after initializing widgets to avoid superfluous recomputes and possible inconsistencies
2021-03-03 10:32:02 +01:00
donovaly
20024707a9
[PD] disallow invalid polar and linear pattern settings
...
as discussed in 423d41da19 we should disallow invalid property settings
2021-03-03 07:45:08 +01:00
David Osterberg
1110f1198b
PartDesign: Allow use of circle edge as axis in PolarPattern
2021-03-01 14:48:24 +01:00
David Osterberg
c862ec458c
PartDesign: Allow use of circle edge as axis in ProfileBased
2021-03-01 14:48:24 +01:00
wmayer
9120d4a7d9
PD: [skip ci] PolarPattern: Support 1 occurrence
...
This is analogous to support 1 occurrence of the linear pattern feature: 74ea8353edc9
2021-03-01 13:58:02 +01:00
donovaly
88c6ed3d2d
[PD] fix multi-transform View
...
- fixes bug 4581
See the first issue reported here:
https://forum.freecadweb.org/viewtopic.php?f=3&t=56093#p482553
- also fix issue that one could set 1 occurrence for polar patterns despite 2 are required at least
- also fix potential dereferencing null pointer (reported by MSVC)
2021-03-01 13:11:15 +01:00
David Osterberg
beb85522e4
PartDesign: Hole. Address Donovaly bugs 7 and 8
...
bug 7: the update view checkbox should be enabled/disabled based on Model thread.
the checked state should not change
bug 8: the Thread depth options should be disabled when Model thread is unchecked.
because they don't do anything in the model it is confusing if they are enabled.
2021-02-28 20:13:14 +01:00
David Osterberg
10f922613b
PartDesign: Hole: Always update view if modelthread is disabled
...
Also: Check the Update View checkbox and disable it, when turning off
model thread.
2021-02-28 20:13:14 +01:00
David Osterberg
99215a9f9f
PartDesign: Hole: Turn off keyboard tracking on model thread spinboxex
2021-02-28 20:13:14 +01:00
David Osterberg
41724cd29b
PartDesign: Hole: Rename Automatic Tapped (DIN76) and change default to Hole depth.
2021-02-28 20:13:14 +01:00
David Osterberg
d7ae53d597
PartDesign: [Hole] Add Entire Depth thread depth mode
2021-02-28 20:13:14 +01:00
David Osterberg
d94946781e
PartDesign: Add true threads to Hole
...
- Thread runout according to DIN 76-1
- Through all length updated to be calculated based on bounding box
- New properties: ModelThread, ThreadDepthType, ThreadDepth,
UseCustomThreadClearance, CustomThreadClearance
- Rename Old but unused parameters related to thread modeling.
- Functionality exposed in UI
2021-02-28 20:13:14 +01:00
Chris Hennes
d5779d8c9b
[PD] Fix minor static analysis issues in FCGear
...
LGTM has identified a number of minor issues with the FCGear Part Design
scripts. This commit addresses each of them, and also corrects two minor
spelling errors in the dialog. None of the errors or their fixes are
expected to result in changes to the functionality of the script.
2021-02-27 18:20:32 +01:00
David Osterberg
9d24f90dd7
PartDesign: Transformded. Align the "property category" of Refine with other PD commands
2021-02-27 18:19:14 +01:00
Yorik van Havre
fa85db61f9
Merged crowdin translations
2021-02-25 13:27:48 +01:00
luz paz
755f4cf1be
Crowdin: removing obsolete strings from PartDesign.ts [skip ci]
...
Uncertain to why but lupdate is not removing obsolete strings from `PartDesign.ts`. This PR manually removes obsoletes strings from it.
ref:
https://crowdin.com/translate/freecad/564/en-de?filter=basic&value=0#6500474
https://crowdin.com/translate/freecad/564/en-en?filter=basic&value=0#6500475
2021-02-25 10:41:58 +01:00
wmayer
78a9a3c2a8
PD: [skip ci] remove invalid static_cast
2021-02-24 20:12:26 +01:00
Yorik van Havre
5c12afb5b5
Merged crowdin translations
2021-02-24 18:07:59 +01:00
wmayer
145eb8ea8c
PD: fixes #0004567 : Pattern from a feature type UpToFace and Offset > copy whole body
2021-02-24 17:08:20 +01:00
wmayer
4c18734d2e
PD: [skip ci] code refactoring
...
Move adding offset to face from getUpToFace() to addOffsetToFace()
2021-02-24 16:08:03 +01:00
wmayer
45079ca2ac
PD: [skip ci] AddressSanitizer: stack-use-after-scope
...
Axis() returns a tmp. object and thus we cannot use a const reference to get its Location() method
2021-02-23 13:57:51 +01:00
wmayer
48f56169de
PD: [skip ci] fix regression caused by fdf7e6acbe120
...
In the accept() method the view provider of the edited object must be made visible if it's valid as otherwise it can happen that the view is empty.
See https://forum.freecadweb.org/viewtopic.php?f=13&t=55915
2021-02-23 11:20:45 +01:00
David Osterberg
59dd9d72c5
PartDesign: Fix throughall distance when throughall is used together with midplane
2021-02-20 20:12:47 +01:00
wmayer
7c4ff63079
PD: [skip ci] fixes #0004540 : When manual size of DatumPlane is selected its Length property is not saved to the file and consequently not restored on opening
2021-02-20 13:33:54 +01:00
wmayer
fab2a0d1fa
PD: [skip ci] do not pop-up dialog when creating a body while another body is selected
2021-02-19 21:44:48 +01:00
David Osterberg
0e8e5c8d49
PartDesign: Fix helix for OCC versions < 7.5.0
2021-02-19 20:02:11 +01:00
donovaly
3fdce54be7
[PD] fix dressup feature display when broken
...
As discussed in https://forum.freecadweb.org/viewtopic.php?p=479647#p479377
the user can end up without either seeing nothing or an inexisting dressup feature.
This PR fixes this.
2021-02-19 14:51:52 +01:00
David Osterberg
1b07835aa5
PartDesign: Check closedness in AddSub refine function
2021-02-19 14:33:56 +01:00
wmayer
55cdfefce1
PD: [skip ci] recompute document when canceling task dialog, fix also possible crash
2021-02-19 11:33:58 +01:00
wmayer
da90fa3ba7
PD: [skip ci] drop some superfluous static_cast
2021-02-18 22:51:15 +01:00
Chris Hennes
da7c6d9172
[PD] Fix isFeatureMovable() to check null status of property
...
As reported by @donovaly, if you try to move a pipe that does not have
an auxilliary spine, the code segfaults. This commit adds a check to ensure
that not only does the property exist (which in this case it always does), but
also that it does not contain a null. That is a valid value for the property
to have, but cannot be itself interrogated for moveability by the isFeatureMovable
recursive call. This fix is also applied to the other similar conditions in that
function to ensure they never yield the same segmentation fault.
Forums topic: https://forum.freecadweb.org/viewtopic.php?p=479388#p479388
2021-02-18 22:44:13 +01:00
David Osterberg
fc6b98e4d7
PartDesign: Mild code cleanup of Helix
2021-02-18 21:51:44 +01:00
wmayer
6a3e76addb
PD: [skip ci] fix typo in comment
2021-02-17 15:55:47 +01:00