wmayer
5686149cd3
PD: modernize C++: use default member init
2023-08-23 00:55:03 +02:00
wmayer
ca1cb21498
PD: modernize C++: use equals default
2023-08-22 13:31:17 +02:00
Florian Foinant-Willig
b80c960077
PartDesign: Fix uptolast ends too soon
2023-08-21 11:14:24 -05:00
wmayer
0d854a56cd
Part: modernize C++: return braced init list
2023-08-19 11:35:41 +02:00
wmayer
9a1f8a11d6
PD: modernize C++: use range-based for loop
2023-08-16 21:54:56 -05:00
wmayer
d150fa7164
modernize C++: avoid bind
...
In many cases std::bind() is kept because the code is much simpler
2023-08-08 21:10:16 +02:00
wmayer
68d22d864b
modernize C++: move from boost::bind to std::bind
2023-08-08 17:36:13 +02:00
wmayer
89d529ab7b
modernize C++: use using
2023-08-06 23:17:10 +02:00
wmayer
2a88c7c7df
modernize C++: use bool literals
2023-08-06 01:35:39 +02:00
wmayer
899932cec0
Part/PD: modernize C++: redundant void arg
2023-08-05 16:50:31 +02:00
luzpaz
16e083c8f3
Fix various typos
2023-08-04 19:46:12 +02:00
wmayer
7daf7c0700
Part: modernize C++: use override
2023-08-04 17:09:53 +02:00
Florian Foinant-Willig
761e807cd5
PartDesign: UpToFace check isnull
...
The next line crash if upToFace is null.
2023-07-24 14:40:15 +00:00
wmayer
d7c90d3f77
PD: fix out of scope warnings of Clone feature
...
If the BaseFeature link of the Body of a Clone feature isn't set then do not update it.
Forum thread: https://forum.freecad.org/viewtopic.php?p=675644#p675644
2023-07-24 14:35:04 +00:00
Pesc0
4a8d3853ba
[Toponaming] create ElementMap class ( #9175 )
...
* Copypaste ElementMap
* Add MappedNameRef
* Fix missing include
* Copypaste `findTagInElementName`
* fix error introduced _somewhere_
* refactor toponaming constants
* Move `findTagInElementName` in `MappedName`
* reintroduce workaround to compile ElementMap
* Added missing functions copied from complexgeodata
* fix last compile errors, reorder and format files
* remove recursive refs to ComplexGeoData
* Add more comments
* fixed comments and added tests
* added FIXME, make functions private, misc fixes
* Move static functions from complexGeoData to PostfixStringReferences. Rename to ElementNamingUtils
* Fix broken includes due to previous change
* Revert constants from string to const char*
* added childmap tests and made hasher public
* Make functions private
* Added remaining tests
* removed bool return from `erase` functions
* fix missing appexport
Co-authored-by: John Dupuy <jdupuy98@gmail.com >
2023-06-15 09:05:24 -05:00
Adrián Insaurralde Avalos
b2520d489a
PartDesign: clean redundant/incorrect length validation for pad & pocket
...
better validation is already done for both at FeatureExtrude::generatePrism instead
2023-06-13 22:53:32 -04:00
Chris Hennes
80b29d2dbf
Gui: Minor translation fixes
2023-05-11 18:31:34 -05:00
Chris Hennes
1995d84edd
PD: Add translation to error messages
2023-04-28 11:32:56 -05:00
luzpaz
129d5882a7
Migrate domain name from freecadweb to freecad ( #9352 )
...
* Migrate domain name from freecadweb to freecad
* Migrate src/Mod/Material files
* Migrate Stylesheet related files
* Migrate *.svg files
* Migrate miscellaneous files
* Migrate some build files
* Migrate recently added TD AR_IRAM template files
Closes #6415
2023-04-24 15:19:20 -05:00
Jolbas
c001732663
PartDesign: Return directly if occurrences is 1
...
In LinearPattern and PolarPattern. Skip all checks if occurrences is 1. Allows Expressions on Length/Angle that evaluates to 0 if Occurrences is 1.
Co-Authored-By: 0penBrain <48731257+0penBrain@users.noreply.github.com >
2023-03-30 23:02:03 +02:00
Paddle
12588150c1
PartDesign: Chamfer/fillet/draft/thickness small fixes.
2023-03-28 13:30:13 +02:00
Paddle
de6038ff9b
PartDesign: Fix placement issue with thickness tool when the feature was empty.
2023-03-28 12:52:42 +02:00
Paddle
47cc265b4f
PartDesign: Fillet, Chamfer, Draft, Thickness : Enable tool to start with no selection.
2023-03-28 12:52:42 +02:00
Uwe
5a1bd28631
[PD] FeaturePipe.cpp formatting fixes
...
- remove commented includes (once mistakenly added by me)
- also fix too long lines
2023-03-28 01:56:30 +02:00
wmayer
580b775690
clang: fix -Wunused-parameter, -Wunused-variable, -Wswitch
2023-03-12 15:05:21 +01:00
mosfet80
218269bdaf
Update json ( #8830 )
...
* Update json from 3.9.1 to 3.11.2
2023-03-11 13:30:27 +01:00
luzpaz
6802bed99d
Fix various typos and whitespace
2023-03-10 14:40:46 +01:00
Uwe
d27e69bdc9
[PD] add tooltip for Hole feature
...
- tooltip makes clear what the depth means for countersinks
- add comment why a calculation cannot be performed
- shorten some long lines
2023-03-10 05:14:24 +01:00
Zheng, Lei
fac0a1740f
PartDesign: do not include transform for sub-object in Feature
2023-03-10 02:06:24 +01:00
Alexander Golubev
088f51632b
PD: Fix Loft's Closed option
...
Closes: https://github.com/FreeCAD/FreeCAD/issues/6156
2023-03-09 01:48:32 +01:00
luzpaz
62974cd4d5
PartDesign: convert indentations to spaces
2023-01-23 15:47:22 +01:00
wmayer
c26a4c7978
PD: fixes #7791 : Linear Pattern With Single Occurrence Fails
2022-12-27 14:29:16 +01:00
Uwe
94787e8afa
[PD] enable padding to touching planes
...
- this patch is from @@FlachyJoe
- as reported here: https://forum.freecadweb.org/viewtopic.php?p=646231#p646231
it was impossible to pad to a face which is touching the sketch despite is is no parallel to the extrusion Direction
2022-12-12 13:04:05 +01:00
wwmayer
1046bd14a8
Revert "[PD] App: precompiled header fixes"
2022-12-10 00:22:55 +01:00
Uwe
454dddb8ba
[PD] App: precompiled header fixes
...
- use same naming scheme ans CMakeLists structure as for all other WBs
2022-12-09 19:26:38 +01:00
Uwe
e6b3d5aded
[PD] improve PreCompiled.h handling
2022-12-07 21:31:16 +01:00
wmayer
69aba3abe1
PD: remove parameter 'supportface' from ProfileBased::getUpToFace as it's not used any more
2022-12-05 12:46:52 +01:00
Uwe
59c1741559
[PD] Pad/pocket: fix wrong error message
...
- the error can also occur when the mode it not UpToFace (ToFirst or ToLast)
- also add note when Reversed checkbox is enabled since this is no obvious (as discussed in the forum)
- also some whitespace unification and include sorting
2022-12-04 05:37:11 +01:00
Uwe
3ded221646
[PD] FeatureSketchBased: fix orthogonal check
...
- same fix as #7879
- also fix wording on an error message and improve a variable name
2022-12-04 05:31:51 +01:00
luz paz
674bd3d6ec
PartDesign: fix header uniformity
2022-11-30 01:28:56 +01:00
luz paz
c726b69d7e
PD: remove trailing whitespace
2022-11-10 10:32:04 +01:00
Flachy Joe
b2eb67e806
[PartDesign] Improve Helix calculation for straight shape ( #7674 )
2022-10-31 23:26:10 +01:00
Uwe
978642d03e
[PD] remove deprecated holes
...
- as discussed in https://github.com/FreeCAD/FreeCAD/pull/7642 the backwards compatibility for deprecated holes was already lost since FC 0.19
- this PR removes the deprecated types and transform holes created with FC 0.19 or 0.20 to the corresponding countersinks/counterbores.
- also add Counterdrill for translations
2022-10-27 14:24:32 +02:00
Uwe
f1c03bc233
[PD] FeatureHole.cpp: sort counterdrill
...
- will be necessary to push deprecated entries to the end of the combobox in the dialog (in a coming PR)
- also fix too long code line
2022-10-25 01:09:37 +02:00
wmayer
c98545b6ca
PD: [skip ci] disable undo/redo for the tmp. document created by the SubShapeBinder
2022-10-24 16:50:50 +02:00
Stefan Klug
60d7b1d834
PartDesign: Add HoleCuteType "Counterdrill"
2022-10-24 15:19:24 +02:00
Stefan Klug
c7f64b12bd
PartDesign: Refactor geometry creation of counersink/counterbore
...
The counterbore is basically a special case of the countersink
with a countersink angle of 180 degrees and applied depth.
Handling it that way elimintaes some duplicate code and adds the ability to
combine countersinks and counterbore to form a counterdrill.
The sanity check on countersinkAngle can be safely dropped as it is ensured
by a constraint on the property itself.
2022-10-24 03:42:02 +02:00
Stefan Klug
7ed0c36aa3
PartDesign: Remove duplicate comment
2022-10-23 09:15:17 -05:00
Uwe
78cc184d50
[Part/PD] few clang formatting fixes
2022-09-18 13:33:41 +02:00
0penBrain
4bfc6a082a
PartDesign: improve offset handling of SubShapeBinder
2022-09-11 21:17:22 +02:00