Commit Graph

36765 Commits

Author SHA1 Message Date
FEA-eng
dd8eb390f1 SPREADSHEET: Update importXLSX.py 2024-04-03 18:47:23 +02:00
wmayer
b47d72f8de RE: Add function to approximate B-Spline from points 2024-04-03 18:06:00 +02:00
wmayer
ba27d6d92d Part: Add overloaded methods of GeomBSplineCurve::approximate 2024-04-03 18:06:00 +02:00
wandererfan
94c2d4fff1 [TD]fix fail on corrupt dimension reference 2024-04-03 08:48:39 -04:00
wmayer
d92267c6a7 Fix several compiler warnings
* fix -Winconsistent-missing-override
* fix -Wunused-but-set-variable
* fix -Wunused-parameter
* fix -Wunused-lambda-capture
* fix -Wunused-private-field
* fix -Wpessimizing-move
2024-04-03 10:04:56 +02:00
wmayer
0b08ea3368 C++: replace deprecated vsprintf and sprintf
With future C++ compilers the methods vsprintf and sprintf are declared as deprecated due to security issues.
They are replaced with the secure counterpart of the fmt library

Fixes the compiler warnings -Wdeprecated-declarations
2024-04-03 10:04:56 +02:00
Chris Hennes
d8a194a70b Fix Material resource location 2024-04-02 22:52:52 -05:00
CalligaroV
66912a6810 Part/Toponaming: WireJoiner - use std::hash with OCC_VERSION_HEX >= 0x070800
* Added precompiler directive to use std::hash instead of HashCode(INT_MAX) if OCC_VERSION_HEX >= 0x070800

Signed-off-by: CalligaroV <vincenzo.calligaro@gmail.com>
2024-04-02 17:23:56 -05:00
wmayer
648bf95112 Mat: Material editor can't be opened from FEM_MaterialSolid and FEM_MaterialFluid
This fixes #12949.

* The file materials-editor.ui must be installed with a separate INSTALL command because it goes to another directory than the other resource files.
* Material_rc.py isn't copied to the build directory any more. So, then don't install it either.
2024-04-02 17:44:28 +02:00
wmayer
d1532cae5c Material: add MatGuiImages to MatGui target 2024-04-02 17:44:28 +02:00
wmayer
20a05400fa Robot: do not install testprog.* files 2024-04-02 17:44:28 +02:00
wmayer
21a842cc32 FEM: do not copy __init__.py from z88 into its sub-directories with INSTALL target 2024-04-02 17:44:28 +02:00
wmayer
68417edbce Ext: copy Python modules to Ext to be consistent with INSTALL target 2024-04-02 17:44:28 +02:00
Ladislav Michl
5a9ba5f4db Gui: WorkbenchSelector: Fix build with Qt6
indexOf is returning qsizetype in Qt6, so use type explicitely.
2024-04-02 16:19:27 +02:00
Ladislav Michl
870334cfcd Gui: WorkbenchSelector: Fix whitespaces 2024-04-02 16:19:27 +02:00
Yorik van Havre
988e86731e Setter for Modified attribute 2024-04-02 15:28:57 +02:00
FEA-eng
57eeb029b7 FEM: Update importToolsFem.py 2024-04-02 15:27:13 +02:00
paullee
e76d31a328 [ArchRoof] Generate subVolume from base if solid
For roof created from Base object as solids:
Not only the solid of the base object itself be subtracted from a Wall, but all portion of the wall above the roof solid would be subtracted as well.

FC forum discussion : Sketch based Arch_Roof and wall substraction
- https://forum.freecad.org/viewtopic.php?t=84389
2024-04-02 15:25:38 +02:00
sliptonic
ad15de4b68 Merge pull request #13254 from jamwaffles/drill-g85-feed-retract
CAM/Drilling: Add feed retract option to drilling op settings for reaming/boring heads
2024-04-02 07:57:55 -05:00
sliptonic
aa595524b9 Merge pull request #13273 from Ondsel-Development/cam-prefs
Cam prefs
2024-04-02 07:35:52 -05:00
Roy-043
b4e50f4d93 Arch: Arch_Pipe did not process Subtractions and Additions
Forum topic:
https://forum.freecad.org/viewtopic.php?t=86556
2024-04-02 12:06:19 +02:00
paul
d3d18ac7e0 [ArchWall] getExtrusionData() fix normal problem by adding get_shape_normal() (#12603)
* [ArchWall] getExtrusionData() fix normal problem by adding get_shape_normal()

In geometry.py
- added get_shape_normal()
- fixed is_straight_line()
DraftGeomUtils.py
- added get_shape_normal()

FC Discussion - https://forum.freecad.org/viewtopic.php?p=726101#p726101

* [ArchWall] getExtrusionData() fix normal problem

Follow-up following discussion at https://github.com/FreeCAD/FreeCAD/pull/12603

- delete trailing whitespaces
- put Part.makePolygon() in try statement
- study and findings at https://github.com/FreeCAD/FreeCAD/pull/12603#issuecomment-1969277743

In geometry.py
- added get_shape_normal()
- fixed is_straight_line()
DraftGeomUtils.py
- added get_shape_normal()

FC Discussion - https://forum.freecad.org/viewtopic.php?p=726101#p726101

* Update geometry.py

* Update geometry.py

* Update geometry.py

---------

Co-authored-by: Yorik van Havre <yorik@uncreated.net>
2024-04-02 11:54:27 +02:00
James Waples
01ea7b9467 Add tests for drill feed retract option 2024-04-02 09:45:34 +01:00
James Waples
37c27b9488 Add some extra docs and combinatorial checks 2024-04-02 09:45:34 +01:00
James Waples
0e502a1a53 Add tooltip 2024-04-02 09:45:34 +01:00
James Waples
de685691ad CAM/Drilling: Add feed retract option to drilling op settings
Adds a checkbox to output a G85 cycle used for reaming or boring. The
cycle is like a normal drilling op, but feeds back out of the hole
instead of performing a rapid move.

G85 does not support peck or dwell, so those other options are disabled
when the "Feed retract" option is enabled in the UI.
2024-04-02 09:45:34 +01:00
PaddleStroke
581dee4d48 Sketcher: Fixes #13181 2024-04-02 09:48:44 +02:00
wmayer
d063ea58a4 Gui: Fix Std_LinkActions
Currently the active button of the Std_LinkActions command is toggable that is confusing behaviour.
This PR makes the action group non-checkable
2024-04-02 08:19:38 +02:00
wmayer
3b39c0885b PD: Fixes 12673: Transforming of sub-shape binder fails
The problem is caused by conflicting values of the anonymous enum of ViewProviderSubShapeBinder. The solution is to set a higher value than the highest value of EditMode
2024-04-02 08:18:46 +02:00
wmayer
a7470332f7 PD: replace static_cast with dynamic_cast
The use of static_cast here could cause undefined behaviour because at this point it's not guaranteed that findBodyOf()
really returns a PartDesign::Body
2024-04-02 08:17:45 +02:00
sliptonic
5cd958dee5 fixes #13206 2024-04-01 18:20:27 -05:00
sliptonic
f8122eecae fixes #13207 2024-04-01 18:20:27 -05:00
bgbsww
99da05f8a6 Rewrite PropertyTopoShape::getShape to fix dangling reference 2024-04-01 16:54:59 -05:00
ppphp
ecf6532969 fix for yaml version 2024-04-01 16:46:57 -05:00
wmayer
ac1d887336 Gui: fix compiler warning 2024-04-01 19:42:08 +02:00
wmayer
4b18a1018b FEM: Handle unknown exception when applying a constraint to a B-Spline surface
Fixes #13213

An OCC exception is raised when trying to normalize a null vector. The solution is to check the square length before normalizing it
2024-04-01 19:38:28 +02:00
sliptonic
6ca35709dd Merge pull request #13256 from wwmayer/extend_parameterpy
Base: expose a method to rename a parameter group to Python
2024-04-01 11:32:21 -05:00
Chris Hennes
8a6bb8884b Merge pull request #13196 from bgbsww/bgbsww-toponamingCompSolidPyImp
Toponaming/Part move in PyImps
2024-04-01 11:30:44 -05:00
Furgo
ecf5eba82e Fix to WebGL export. Closes: #13186 2024-04-01 11:25:23 -05:00
PaddleStroke
4b16444bae Core: Std_ToggleTransparency: Fixes #11353 2024-04-01 11:23:49 -05:00
PaddleStroke
c26f52c4e4 Sketcher: Symmetry fix #13164 2024-04-01 11:20:40 -05:00
PaddleStroke
64054d13c4 Sketcher: Add line mid-point auto-constraint 2024-04-01 11:20:02 -05:00
PaddleStroke
f9c9870273 SpreadSheet: Double clicking a spreadsheet changes to spreadsheet wb 2024-04-01 12:18:38 -04:00
sliptonic
5ee34d7ead Merge pull request #13130 from maxwxyz/fem-icons
UI: update FEM icons
2024-04-01 11:16:09 -05:00
Max Wilfinger
eaf1e7ecee adjust Part Design icons incl. WB icon 2024-04-01 11:15:33 -05:00
FEA-eng
63b7ff464a FEM: Update ObjectsFem.py 2024-04-01 11:04:56 -05:00
marioalexis
816226d332 Fem: Improve post-processing object style - fixes #13017 2024-04-01 11:04:29 -05:00
PaddleStroke
5668b6952b Sketcher: Chamfer Fix #13049 2024-04-01 11:04:02 -05:00
Florian Foinant-Willig
aed5727ac3 [PD] Fix crash related to SuppressibleExtension 2024-04-01 11:02:25 -05:00
David Carter
57c66a96a6 Material: Add thermal reference temperature (#13026)
* Material: Add thermal reference temperature

Fixes #13019

Adds the property 'Thermal Expansion Reference Temperature' to
the Thermal properties

* Fix delegates
2024-04-01 11:00:45 -05:00