Ajinkya Dahale
43a8104926
[PD] Refactor FeatureRevolution further
...
New methods created to reduce size of `execute`.
Use BRepPrimAPI instead of BRepFeat whenever possible since otherwise there are
some limitations.
2023-11-14 00:20:19 +05:30
Ajinkya Dahale
149738af7f
[PartDesign] Refactor mode support in revolution
...
Encodes support for "two angles".
Clarifies that up-to-first and up-to-last is not supported.
2023-11-14 00:20:19 +05:30
Ajinkya Dahale
82b5e16cd1
[PartDesign] Add some dummy options for revolution
...
These options correspond to "up to face" and "2 angles". They are expected to do
nothing right now. However there is also some experimental code for "up to face"
in this commit, whose behavior is not confirmed.
2023-11-14 00:20:19 +05:30
Florian Foinant-Willig
230d355e1d
PartDesign_Pad: add an up to shape mode
2023-11-12 20:06:57 +01:00
Chris Hennes
37a8e348c6
Merge pull request #11231 from DeflateAwning/http-cleanup
...
Find and replace http://freecad to https://freecad
2023-11-06 11:16:13 -06:00
DeflateAwning
1e3179e9bc
Find and replace http://freecad.org to https://freecad.org
...
Find and replace:
http:\/\/(.{0,10})freecad
https://$1freecad
Done in all remaining files (after doing it in SVGs in the last commit)
2023-10-29 22:39:22 -06:00
Florian Foinant-Willig
24934d7843
PartDesign: modernize type checking
2023-10-23 18:08:16 +02:00
wmayer
e7eb7d7b8d
PD: wrong direction determined for linear pattern
...
A selected edge of a sketch is not in local coordinates and thus its corresponding axis mustn't be multiplied with the sketch placement as
this will lead to a wrong direction vector.
Forum: https://forum.freecad.org/viewtopic.php?t=82022
2023-10-23 10:53:29 -05:00
Chris Hennes
8595b07b76
Merge pull request #10844 from ppphp/remove_redundant_definition
...
[cmake] some definitions do not matter now
2023-10-02 14:20:49 -05:00
FEA-eng
499381a8ba
Merge branch 'master' into patch-5
2023-10-02 18:14:44 +02:00
liukaiwen
329904a055
[cmake] some definitions do not matter build now
2023-09-27 18:17:14 +08:00
liukaiwen
5048074542
fix: json is a 3rdparty library, move to 3rdparty
2023-08-30 16:59:25 +02:00
Kacper Donat
2d22c8f4af
PD: Keep Length and Offset in sync for LinearPattern
...
As Length and Offset represents the same concept in different way it is
useful to keep them in sync when it is possible. Update to one of them
will update the other with approperiate value. This behaviour behaviour
works only if both properties are not coming from expression engine -
those will stay not touched.
2023-08-27 12:45:53 +02:00
Kacper Donat
148c497eba
PD: Add offset / overall angle modes for PolarPatterns
...
This commit adds two separate modes for defining angular spacing between
elements in the PD's Polar Pattern:
1. Overall Angle - which behaves exactly like it behaved before,
2. Offset Angle - which allows user to specify separation angle between
consecutive elements.
This change is analogue to that introduced for LinearPattern in previous
commits.
2023-08-27 12:45:53 +02:00
al
b7da44f57b
PD: Add offset / overall length modes for LinearPattern
...
This commit adds support for two separate modes of defining distance
between elements in PD's Linear Pattern.
1. Overall Length - which works exactly like it works before,
2. Spacing - which allows user to explicitly define distance (offset) between
features.
2023-08-27 12:45:53 +02:00
wmayer
3c6174e521
PD: modernize C++: use default member init
2023-08-23 00:55:03 +02:00
wmayer
622e46771e
PD: modernize C++: use equals default
2023-08-22 13:31:17 +02:00
Florian Foinant-Willig
f35da87075
PartDesign: Fix uptolast ends too soon
2023-08-21 11:14:24 -05:00
wmayer
c8abd4a6d4
Part: modernize C++: return braced init list
2023-08-19 11:35:41 +02:00
wmayer
3e09b8ee2d
PD: modernize C++: use range-based for loop
2023-08-16 21:54:56 -05:00
wmayer
948cbfccd9
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
52e1c7c33b
modernize C++: move from boost::bind to std::bind
2023-08-08 17:36:13 +02:00
wmayer
dbad96d43e
modernize C++: use using
2023-08-06 23:17:10 +02:00
wmayer
7a3106d31b
modernize C++: use bool literals
2023-08-06 01:35:39 +02:00
wmayer
22e6e2cd40
Part/PD: modernize C++: redundant void arg
2023-08-05 16:50:31 +02:00
luzpaz
57b9442df7
Fix various typos
2023-08-04 19:46:12 +02:00
wmayer
52ef3a540c
Part: modernize C++: use override
2023-08-04 17:09:53 +02:00
Florian Foinant-Willig
63187bf88b
PartDesign: UpToFace check isnull
...
The next line crash if upToFace is null.
2023-07-24 14:40:15 +00:00
wmayer
93c85ce581
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
c65f049d20
[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
b282c7cbb3
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
397807b72d
Gui: Minor translation fixes
2023-05-11 18:31:34 -05:00
Chris Hennes
272a84ca5b
PD: Add translation to error messages
2023-04-28 11:32:56 -05:00
luzpaz
38a01939e0
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
53aa302d8b
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
f116e83d9d
PartDesign: Chamfer/fillet/draft/thickness small fixes.
2023-03-28 13:30:13 +02:00
Paddle
d56842fd92
PartDesign: Fix placement issue with thickness tool when the feature was empty.
2023-03-28 12:52:42 +02:00
Paddle
bc22bf9c0d
PartDesign: Fillet, Chamfer, Draft, Thickness : Enable tool to start with no selection.
2023-03-28 12:52:42 +02:00
Uwe
1b6e97066c
[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
82ac24de5c
clang: fix -Wunused-parameter, -Wunused-variable, -Wswitch
2023-03-12 15:05:21 +01:00
mosfet80
0505449776
Update json ( #8830 )
...
* Update json from 3.9.1 to 3.11.2
2023-03-11 13:30:27 +01:00
luzpaz
01e8bbc2bf
Fix various typos and whitespace
2023-03-10 14:40:46 +01:00
Uwe
31fa8187d5
[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
99c9d9b468
PartDesign: do not include transform for sub-object in Feature
2023-03-10 02:06:24 +01:00
Alexander Golubev
bc4eaff234
PD: Fix Loft's Closed option
...
Closes: https://github.com/FreeCAD/FreeCAD/issues/6156
2023-03-09 01:48:32 +01:00
luzpaz
216f4c1f45
PartDesign: convert indentations to spaces
2023-01-23 15:47:22 +01:00
wmayer
52838aa6bd
PD: fixes #7791 : Linear Pattern With Single Occurrence Fails
2022-12-27 14:29:16 +01:00
Uwe
79aa19d920
[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
c64ca7b78f
Revert "[PD] App: precompiled header fixes"
2022-12-10 00:22:55 +01:00
Uwe
ab0a15139b
[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