Commit Graph

36698 Commits

Author SHA1 Message Date
wmayer
c3f70bfa7f Base: expose a method to copy a parameter group to Python 2024-04-01 14:56:19 +02:00
wmayer
e16ccc33ce Base: expose a method to rename a parameter group to Python 2024-04-01 14:43:23 +02:00
wmayer
a0e901defd Base: Fix linter warnings in ParameterPy 2024-04-01 14:23:41 +02:00
Roy-043
6c0865a7b9 Sketcher: Rename Sketcher_BSplineApproximate.svg
For consistency: rename the icon to match the command name.
2024-03-31 17:40:40 +02:00
wmayer
1d5de9d356 Base: Fix console logging macros
The notifier string must be a std::string() instead of an empty C string as otherwise the wrong methods are called so
    that all messages are sent to the void.

    This regression was caused by commit dc08aa8e0f
2024-03-31 17:38:26 +02:00
wmayer
7d10f5ed73 PD: Mirror feature should be more permissive
If you have a mirror feature and set the mirror plane with the normal feature editing the recompute works. But if the mirror plane is set with the property editor then the recompute fails with the message that no mirror plane reference is set.

This is related to a an empty sub-name list of the link property instead of a single and empty sub-name element.

This PR allows to specify a sketch, plane or datum plane without a sub-name.

For more details see: https://forum.freecad.org/viewtopic.php?t=86568

This fixes #13238
2024-03-31 17:32:27 +02:00
wmayer
ede1ccc191 PD: refactor Mirrored::getTransformations 2024-03-31 17:32:27 +02:00
Dov Grobgeld
67ac3631ce Fix regexp string quoting 2024-03-31 17:28:47 +02:00
wmayer
7cbb28ca53 Gui: fix computing status value and use enum to avoid magic numbers 2024-03-31 10:59:00 +02:00
wmayer
e422084e92 Gui: the overlay icon for the call tips list is too small 2024-03-31 10:48:50 +02:00
ppphp
91457bbdee add version check macro for compatibility 2024-03-31 10:47:32 +02:00
pre-commit-ci[bot]
b5fa008272 [pre-commit.ci] auto fixes from pre-commit.com hooks
for more information, see https://pre-commit.ci
2024-03-31 10:47:32 +02:00
ppphp
c014ab7a4e fix: some unuse argument warning 2024-03-31 10:47:32 +02:00
ppphp
aa54ba73df fix: c++20 deprecate copy_option 2024-03-31 10:47:32 +02:00
ppphp
da7ee06d67 fix: c++20 deprecate [=] 2024-03-31 10:47:32 +02:00
Roy-043
6fbd8916ab Gui: Std_ViewLeft should be last in "Individual views" toolbar
See #13227.
2024-03-30 17:46:25 +01:00
Max Wilfinger
67b587efde add missing view top option + arrangement 2024-03-30 11:50:17 +01:00
Max Wilfinger
6ca8b2daae update hardcoded XPMs to .svg files. Updated .svg icons for clarity. 2024-03-30 11:25:13 +01:00
wmayer
82e1091c19 Mesh: fix linter warnings 2024-03-30 00:21:58 +01:00
wmayer
a79eef0a39 Mesh: remove problematic method MeshGrid::Rebuild(unsigned long, unsigned long)
and MeshGrid::CalculateGridLength(unsigned long, unsigned long)

For almost flat meshes CalculateGridLength may compute a grid with a huge amount of cells that allocates the whole RAM of the system while for an exactly flat mesh a grid with a sensible number of cells is computed.

Use the overloaded methods of MeshGrid::Rebuild(unsigned long) and MeshGrid::CalculateGridLength(unsigned long) instead
2024-03-30 00:21:58 +01:00
wmayer
67ba197d9c Test: add unit tests for mesh grid creation 2024-03-30 00:21:58 +01:00
Chris Hennes
3fadb1f40b Merge pull request #13197 from bgbsww/bgbsww-toponamingAppPartPy
Toponaming/Part:  move in  AppPartPy
2024-03-28 13:57:30 -05:00
Chris Hennes
49451b3c7f Merge pull request #13154 from chennes/translations20240325
Update translations and fix script
2024-03-28 13:51:39 -05:00
Roy-043
c928fad346 Merge pull request #13191 from Roy-043/Draft-add-Fuse-property-to-patharray-and-pathtwistedarray
Draft: add Fuse property to patharray and pathtwistedarray
2024-03-28 18:58:36 +01:00
bgbsww
b241c0d4e6 Toponaming/Part: Rework and clean python interface and add tests 2024-03-28 12:47:33 -04:00
Chris Hennes
a84255dde8 Merge pull request #13156 from bgbsww/bgbsww-toponamingTopoShapePyImp2
Toponaming/Part: move ToposhapePyImp get methods into place
2024-03-28 09:18:56 -05:00
Chris Hennes
ada6c62e14 Merge pull request #12535 from CalligaroV/toponaming-WireJoiner
Part/Toponaming: Transfer WireJoiner
2024-03-28 09:17:49 -05:00
Zheng, Lei
5663ecfd86 Transfer in makeCompound python interface and other tnp clauses into AppPartPy 2024-03-28 09:01:31 -04:00
Zheng, Lei
8f5394f2f2 Toponaming/Part: move Toposhapepy get methods in 2024-03-28 09:01:31 -04:00
Max Wilfinger
c3409fa424 add missing commands to tree context menu to be consistent with other WBs 2024-03-28 13:02:18 +01:00
Roy-043
beb66d3cfb Sketcher: Improve menu text of Sketcher_MapSketch
The old menu text of Sketcher_MapSketch did not describe the tool very well. Not just a face can be selected.

"Map sketch to face..." -> "Attach sketch..."

Forum topic:
https://forum.freecad.org/viewtopic.php?t=86112
2024-03-28 12:05:08 +01:00
Roy-043
0651883feb Draft: add Fuse property to patharray and pathtwistedarray
See #13172.
2024-03-28 12:03:46 +01:00
tomate44
d2f43e0d2c TopoShapePy: enable multithreading in function distToShape 2024-03-28 11:00:27 +01:00
tomate44
5603c697d0 TopoShapePy: add optional tolerance to function distToShape 2024-03-28 11:00:27 +01:00
wmayer
1eea88a8b7 Gui: add overloaded method pixmapFromSvg() to pass the device pixel ratio of a widget 2024-03-28 07:27:29 +01:00
wmayer
83b72e75a2 Fixes #12865: CommandView Cursor Icons use hardcoded XPM
For the cursor use the device pixel ratio to avoid to look pixelated on HiDPI screens
2024-03-28 07:26:12 +01:00
wmayer
298d6eebe0 Gui: add SVG icons 2024-03-28 07:26:12 +01:00
bgbsww
4df1088896 Toponaming/Part: Bug fix for #13169 while we sort this out 2024-03-27 21:33:57 -05:00
wandererfan
10b9229492 [TD]fix fail on undo of cosmetic delete 2024-03-27 13:23:45 -04:00
Roy-043
ef16ecafc2 Merge pull request #13172 from Roy-043/Draft-add-Fuse-property-to-pointarray
Draft: add Fuse property to pointarray
2024-03-27 16:44:53 +01:00
Roy-043
aa38aecfb6 Merge pull request #13162 from yorikvanhavre/draft-fix-webgl
Arch: Small fix in webgl export
2024-03-27 16:44:15 +01:00
bgbsww
e75b5db8c7 Toponaming/Part: remove senseless voids 2024-03-27 08:49:51 -04:00
Chris Hennes
360e280c64 FEM: Rename vtkWriter to femVTKWriter to make MSVC happy 2024-03-27 12:08:29 +01:00
bgbsww
9ddc4f1372 Toponaming/Part: Fix elementMatch to use full clause and be deterministic 2024-03-26 23:01:54 -05:00
Roy-043
723d68f16d Draft: add Fuse property to pointarray
Fixes #12906.
2024-03-26 22:36:18 +01:00
wmayer
dc3e0c3dcf RE: use of TaskDialog::addTaskBox 2024-03-26 15:57:20 +01:00
wmayer
c0f151104a Surface: use of TaskDialog::addTaskBox 2024-03-26 15:57:20 +01:00
wmayer
8aee9c35a4 Part: use of TaskDialog::addTaskBox 2024-03-26 15:57:20 +01:00
wmayer
b283316571 MeshPart: use of TaskDialog::addTaskBox 2024-03-26 15:57:20 +01:00
wmayer
793685de3c Drawing: use of TaskDialog::addTaskBox 2024-03-26 15:57:20 +01:00