Commit Graph

26208 Commits

Author SHA1 Message Date
FEA-eng
96efb5814c FEM: Added more intuitive FEM solver icons (#10885)
* Update FEM_SolverControl.svg

* Update FEM_SolverRun.svg

* Update FEM_SolverStandard.svg
2023-10-02 17:42:17 +02:00
Yorik van Havre
09504d9837 Merge pull request #10889 from Predko/SpreadsheetFileExtension
Spreadsheet: export CSV file extension by default
2023-10-02 17:37:07 +02:00
sliptonic
c242a67793 Merge pull request #10857 from djmdjm/centroid-g43
Add G43 tool height compensation to centroid post
2023-10-02 10:33:36 -05:00
sliptonic
e5c844d796 Merge pull request #10835 from wwmayer/path_fix_warnings
Path: fix compiler warnings
2023-10-02 10:30:58 -05:00
sliptonic
25bf7555d9 Merge pull request #10859 from jffmichi/fix_leadinoutdressup
Path: fix LeadInOutDressup incorrectly treating missing axis words as…
2023-10-02 10:14:45 -05:00
wmayer
5a49ba8e20 Import: improve new STEP/IGES/glTF export function to support colors per face in headless mode
Fixes #10861
2023-10-02 17:10:34 +02:00
wmayer
2d4bcbba34 Import: fix legacy STEP/IGES/glTF export function to support colors per face
See issue #10861
2023-10-02 17:10:34 +02:00
wandererfan
2d72806e29 [TD]Fix no dimensions from old document (#10880) 2023-10-02 09:39:27 -04:00
Yorik van Havre
3360a85097 Merge pull request #10838 from Roy-043/Draft-Update-the-Plane-class-(step-1)
Draft: Update the Plane class (step 1)
2023-10-02 11:36:38 +02:00
Victor Predko
e33c5ceb15 Spreadsheet: export CSV file extension by default
Fixes #10829
2023-10-02 06:38:40 +03:00
wandererfan
b47e9b6420 [TD]add line spacing property
- requires Arch PR #10816 to see results
2023-10-01 19:54:32 -04:00
Paddle
e87f9ed980 Remove Std_MacroStopRecord command as obsolete. 2023-10-01 17:22:19 -05:00
wmayer
02df23ce95 Import: move OCAFBrowser to its own source files 2023-10-01 22:23:57 +02:00
wmayer
6d7b6b52c2 Import: rename ImportOCAFExt to ImportOCAFGui and move to own source files 2023-10-01 22:23:57 +02:00
wmayer
f7c348a47c Import: move class ExportOCAFGui tp its on source files 2023-10-01 22:23:57 +02:00
wmayer
abda1438ad Import: code-refactoring and clean-up
* Add new method ExportOCAF::exportObjects() to avoid code duplication
* Simplify handling of arguments passed to Python handler
* Fix several lint warnings
* Move ImportOCAFExt to the corresponding source files
2023-10-01 22:23:57 +02:00
wmayer
58cc0f2a0d Import: fix lint warnings
* Make constructors explicit
* Fix a regression from PR 10783
2023-10-01 08:01:41 +02:00
wmayer
75b313be28 Import: move IGES reader & writer to own classes 2023-10-01 00:18:11 +02:00
wmayer
f40dfe7193 Import: move STEP reader & writer to own classes 2023-10-01 00:18:11 +02:00
wmayer
98a60cd192 Path: fix -Wunused-parameter
Several methods declare to support keyword arguments but then don't use them
2023-09-30 22:32:01 +02:00
wmayer
b6fb5206db Path: fix -Wunused-but-set-variable 2023-09-30 22:31:46 +02:00
Roy-043
5dc9c484b9 FEM: Add sWhatsThis for FEM_CompEmConstraints 2023-09-30 18:43:48 +02:00
wmayer
9f42bdb323 Gui: fixes #10807: By default keep the old tabulated layout of ComboView and TaskView 2023-09-30 17:33:33 +02:00
Chris Hennes
6c9be93378 Update translations 2023-09-29 22:57:37 -05:00
Chris Hennes
8bb7523f9b Merge pull request #10863 from wwmayer/material_fixes
Material: fix build failure with Qt6
2023-09-29 22:50:18 -05:00
wmayer
fa3c0418c3 Material: use get_filename_component() instead of cmake_path() to support older CMake versions 2023-09-29 07:32:58 -05:00
Yorik van Havre
7f8589bad2 Merge pull request #10856 from Roy-043/Draft-get_movable_children-prevent-endless-loop
Draft: get_movable_children: prevent endless loop
2023-09-29 11:27:34 +02:00
Yorik van Havre
c1146d9e1d Merge pull request #10845 from Roy-043/Draft-ImportDXF-CURRENTDXFLIB-is-not-obsolete-and-should-be-kept
Draft: ImportDXF: CURRENTDXFLIB is not obsolete and should be kept
2023-09-29 11:24:06 +02:00
wmayer
f4c6504aa1 Material: QMetaType::type(const char*) is deprecatred and shouldn't be used in new code 2023-09-29 11:05:07 +02:00
wmayer
0eb789a1e2 Material: fix build failure with Qt6 2023-09-29 10:09:39 +02:00
Damien Miller
b24ec0d4fa regress test for G43 in centroid post
Since the centroid post now support --no-tlo, we can test that
too.
2023-09-29 17:46:28 +10:00
wmayer
11e4072fb7 Material: include some more required header files
as otherwise the parser of the clang code model raises a lot of error messages
2023-09-28 15:33:03 -05:00
Jolbas
5d39d7c3e9 Matrix.decompose() fix
Fixes some errors when matrix has zero scale in one or two directions
2023-09-28 15:25:29 -05:00
Jolbas
31637adaa0 Create rotation from any matrix
To help find a matrix components a decompose method is added to Matrix class
2023-09-28 15:25:29 -05:00
jffmichi
55921c81a9 Path: fix LeadInOutDressup incorrectly treating missing axis words as being 0 2023-09-28 21:10:21 +02:00
Damien Miller
43fcccf75f Add G43 tool height compensation to centroid post
This adds G43 tool height compensation to the centroid CAM post-processor using
a similar approach to the G43 support in the MACH3 post.

Specifically, G43 is emitted at every tool change by default and a new
`--no-tlo` post argument can restore the old behaviour of no height
compensation being emitted. These both match how the MACH3 post does it.
2023-09-28 23:56:50 +10:00
Roy-043
4cf613ec31 Draft: get_movable_children: prevent endless loop
Forum topic:
https://forum.freecad.org/viewtopic.php?t=81547
2023-09-28 15:19:25 +02:00
wandererfan
2f069bb94f [TD]fix missing reference geometry 2023-09-28 09:01:39 -04:00
marioalexis
4630bdbcb1 Material: Include needed header file 2023-09-28 14:55:55 +02:00
wmayer
b01a41237a Mat: fix several compiler warnings:
* -Winconsistent-missing-override
* -Wtautological-undefined-compare
2023-09-27 21:38:56 -05:00
Chris Hennes
1dd2baa172 Merge pull request #10690 from davesrocketshop/material_merge
Material: Material handling enhancements
2023-09-27 16:15:06 -05:00
wandererfan
a48490f518 [TD]fix centerline rotation 2023-09-27 12:24:21 -04:00
wandererfan
68f79e06ae [TD]allow centerline deletion with Del 2023-09-27 12:24:21 -04:00
Roy-043
a9e224cdae Draft: ImportDXF: CURRENTDXFLIB is not obsolete and should be kept 2023-09-27 15:41:40 +02:00
wmayer
0fd66ad64c Fem: fixes #10823: Solver CalculiX (new framework) seems to be unnecessary 2023-09-27 13:04:48 +02:00
Roy-043
7a5d8bb3a8 Draft: Update the Plane class (step 1)
After this PR the `Plane` class inherits from the `PlaneBase` class.

Related issue:
#5603.

Previous PR:
#10766

The following functions have been updated:

`__init__`
* `u` argument can be a WP now.
* Input vectors are copied.
* Added the `weak` argument.
* the `doc` attribute was not used and has been removed.

`__repr__`
* Inherited.
* The `position` is now also shown.

`copy`
* Uses `match` from the parent class which uses the local `_get_prop_list` function. Again vectors are copied.

`offsetToPoint`
* I could not find evidence that this function is used anywhere.
* The `direction` argument did not make a lot of sense (only worked in 2D). It is now ignored.
* Removed the overly long docstring.
* The function now uses an external function: `DraftGeomUtils.distance_to_plane`.

`projectPoint`
* The function calls `super().project_point` which in turn calls `DraftGeomUtils.project_point_on_plane`.
* `from sys import float_info` is no longer required.

`projectPointOld`
* Obsolete and removed.

`align*`
* All align* functions now have an `offset` argument.
* All align* functions return `True` or `False`.

`alignToPointAndAxis`
* The function ignored `upvec` if `axis` was parallel to the global X axis. This meant that the "Set WP" button of the Draft_Wire command did not work properly if the WP was aligned with the Right or Left view.
* The function calls `align_to_point_and_axis` which determines the rotation with `FreeCAD.Rotation(Vector(), upvec, axis, "ZYX")`.

`alignToPointAndAxis_SVG`
* The function calls `super().align_to_point_and_axis_svg` which contains the code from the old function.

`alignToCurve`
* Was not implemented.

`alignToEdges`
* Original code required two parallel edges (for example from an axis system), else the `u` and `v` vectors would not be perpendicular.
* The function calls `super().align_to_edges_vertexes` now.

`alignToFace`
* The function now uses an external function: `DraftGeomUtils.placement_from_face`. The rotation algorithm for the `u` and `v` vectors has been moved there.

`alignTo3Points`
* Basically unchanged. `Part` is already imported at the top of the file.

`alignToSelection`
* Basically unchanged. Will be replaced in the `PlaneGui` class.
2023-09-27 11:25:04 +02:00
wmayer
712db967c2 Mesh: C++ core guidelines 2023-09-26 13:10:23 +02:00
Roy-043
2f6b72bf01 Draft: ShapeString: improve ObliqueAngle (#10811)
Calculation of the justification required the use of `optimalBoundingBox` and should happen after applying the oblique angle.
2023-09-26 12:53:53 +02:00
wmayer
a364141c58 Mesh: C++ core guidelines 2023-09-26 11:20:35 +02:00
Roy-043
64c346b7fa Arch: ArchSectionPlane.getSVG add linespacing argument
Forum topic:
https://forum.freecad.org/viewtopic.php?t=81470
2023-09-25 22:09:41 +02:00