Commit Graph

31921 Commits

Author SHA1 Message Date
berniev
08214d9ec3 clang-format enable reflow comments 2023-02-16 09:29:51 -05:00
Uwe
ef29cc7657 [Gui] font setting fixes for NaviCube
- it turned out that the current check for default font failed because of wrong check for the hinting
- fix bug that when the FontSize is not yet stored in the parameters, the dialog shows a wrong size value
2023-02-16 14:11:54 +01:00
Yorik van Havre
b88fb1bcfd Merge pull request #8506 from Roy-043/Arch-children-of-Component-did-not-rotate-with-Host
[Arch] children of Component did not rotate with Host
2023-02-16 09:28:32 +01:00
Uwe
4639283b45 [FEM] make pvtu file filtering optional
- it is sensible to filter by default, however, it turned out that on some complex models Elmer fails to compute if the mesh volume regions are too small (in most cases) or at a certain mesh region. By disabling the filtering, one gets at least for the latter case a visual feedback where the mesh volume of the different CPU are (by also setting a transparency to the result pipeline).
2023-02-16 02:32:40 +01:00
Roy-043
1474f36b74 [Arch] children of Component did not rotate with Host 2023-02-16 00:07:07 +01:00
wmayer
684e9fd425 Gui: fix removing item from recent files list 2023-02-16 00:06:33 +01:00
wmayer
ffd9ca6e69 Gui: [skip ci] set object name to tabbar of MDI area 2023-02-15 19:12:37 +01:00
Abdullah Tahiri
e566daa1af Sketcher: Correct font sizes and updates
========================================

Fonts:
- SoDatumLabel internally uses QFont and thus points. It was being fed pixels, for which the configured size in preferences did not match the actual on screen size. This is corrected.
- Font sizes fed directly from parameters to the coin nodes skeleton were not being updated, as the parameter observer is initialised after the nodes are created, and the parameter
observer was not configured to update this nodes. This is corrected.

Colors:
- Some color parameters were not being being updated by the parameter observer. This is corrected.
2023-02-15 17:29:46 +01:00
Yorik van Havre
39f4b8c091 Merge pull request #8495 from luzpaz/fem-trailing-newlines
FEM: fix trailing newlines
2023-02-15 17:02:16 +01:00
Yorik van Havre
2bcde04bfe Merge pull request #8491 from luzpaz/draft-typos
Draft: fix typos
2023-02-15 17:01:30 +01:00
wmayer
a2928cf0f6 Fem: fixes #8485: transparency of pipeline objects is visually lost 2023-02-15 14:52:44 +01:00
luzpaz
d4796dd1d4 FEM: fix trailing newlines 2023-02-15 13:41:38 +00:00
Uwe
b0e50b8eb2 [FEM] Contours: disable keyboard tracking
- otherwise the contour creating algorithm would be invoked on every keystroke
- also improve a code comment
2023-02-15 14:31:10 +01:00
Uwe
a84d6d19e6 [FEM] improve visualization of pvtu files
- To speed up analyses one calculates on several CPU cores. The result is a partial VTU file.
Unfortunately when applying a transparency the boundaries of the volumes computed by each CPU core are always visible. This makes it often unusable for visualizations.
The solution is to filter the results the same way a clip filter does.
2023-02-15 14:22:45 +01:00
luzpaz
e033dd6ba5 Draft: fix typos 2023-02-15 13:13:29 +00:00
Uwe
99a7262e60 [FEM] improve checks for datasets
- check if datasets exists before we access them
- speed up the check for the datatype by testing after the downcast
2023-02-15 10:54:45 +01:00
luzpaz
3b67713b24 FEM: fix trailing whitespace
Fix trailing whitespace in `Fem/App/FemPostFilter.cpp`
2023-02-15 10:45:00 +01:00
Uwe
ee59d2ce58 [FEM] [skip ci] add missing header for precompiled headers 2023-02-15 00:42:54 +01:00
wmayer
61d24dedf7 Part: add integration tests 2023-02-14 22:56:42 +01:00
wmayer
3f72e247ff Part: creating a NURBS of a circle or ellipse doesn't respect any transformation
Example:

mat = App.Matrix()
mat.rotateX(1)
mat.rotateY(1)
mat.rotateZ(1)

circle = Part.Circle()
circle.Radius = 5
circle.transform(mat)

circle.transform(mat)
Part.show(circle.toShape())

nurbs = circle.toNurbs()
Part.show(nurbs.toShape())

arc = circle.trim(0, 2)
nurbs = arc.toNurbs()
Part.show(nurbs.toShape())

spline = circle.toBSpline()
Part.show(spline.toShape())

#-------------------------

ellipse = Part.Ellipse()
ellipse.MajorRadius = 5
ellipse.MinorRadius = 3
ellipse.transform(mat)

ellipse.transform(mat)
Part.show(ellipse.toShape())

nurbs = ellipse.toNurbs()
Part.show(nurbs.toShape())

arc = ellipse.trim(0, 2)
nurbs = arc.toNurbs()
Part.show(nurbs.toShape())

spline = ellipse.toBSpline()
Part.show(spline.toShape())
2023-02-14 22:56:42 +01:00
Roy-043
f34cce97a0 [Draft] typo: object name should be capitalized (#8484) 2023-02-14 15:44:26 +01:00
Syres916
f6b3399848 [Sketcher] Fix cursor coordinates text size...
...to stay in proportion to the constraint text size. Fixes https://github.com/FreeCAD/FreeCAD/issues/7080
2023-02-14 15:07:01 +01:00
Uwe
af68a0618b [FEM] [skip ci] Countours: remove unused code
- also fix a trailing whitespace
2023-02-14 13:48:03 +01:00
Uwe
a6d1dc7fc0 [FEM] Contours: fix task panel logic
- the ViewProvider sorting of the field can be different from the sorting in the dialog

- also hide a Contours property (I forgot this when the contours filter was added)
2023-02-14 13:30:58 +01:00
wmayer
212bbc7fa0 App: define an enum to be used as the retType argument of DocumentObject.getSubObject()
This is to avoid to use magic numbers in client code
2023-02-14 12:02:33 +01:00
luzpaz
ae00eec442 Arch: fix incorrect indentation in ArchStairs.py (#8475) 2023-02-14 11:22:04 +01:00
Chris Hennes
d6fc29f057 Addon Manager: Refactor Macro parser 2023-02-13 23:46:57 -06:00
Chris Hennes
377c1564d1 Test(Metadata): Remove catch from Setup()
If an exception occurs while setting up Xerces-C, make the test framework handle it.
Also add a copyright header, and try to quiet down the clang-tidy linter.
2023-02-13 23:46:37 -06:00
VM4Dim
e85cf5df1f [Gui] Sort Add Property Types 2023-02-14 02:40:08 +01:00
Roy-043
889feae7d7 [Arch] fix Arch_Stairs recompute issue (#8444)
* [Arch] fix Arch_Stairs recompute issue

* Fixed the tooltips for the updated properties.

* Added warnings to the functions that updated the properties.

* Fixed a typo makeCurvedStairsWithLandings -> makeCurvedStairsWithLanding
2023-02-13 21:11:52 +01:00
edi271
2cf1f64000 [TD] solve reported issues 2023-02-13 14:45:04 -05:00
edi271
28fb8b7153 Changed files 2023-02-13 14:45:04 -05:00
edi271
b461f6343f Combo View dialog source hole / shaft fit 2023-02-13 14:45:04 -05:00
edi271
cee126660e [TD] Command source hole /shaft fit 2023-02-13 14:45:04 -05:00
edi271
333bd1a545 [TD] ui file hole /shaft fit 2023-02-13 14:45:04 -05:00
edi271
bd4219951b [TD] Icon file hole/shaft fit 2023-02-13 14:45:04 -05:00
Uwe
592da198c5 [FEM] sort code of result filters
- sort the functions alphabetically to know where to scroll to - eases the reading at least a bit
- some automatic reformatting according to our current clang file
- split too long lines
2023-02-13 19:52:54 +01:00
Uwe
eecf57ffe9 [FEM] improve messages in mesh generation
- no longer output an error on mesh from a BooleanFragments. There are cases when this fails, but other cases where one must use a BoopleanFragments compound and this works well, see https://forum.freecad.org/viewtopic.php?t=71070. Therefore a warning is sufficient.
- disable log messages not important for the average users.
- avoid code duplication
2023-02-13 16:55:00 +01:00
Uwe
fa780e8b5b [FEM] add new filter to display iso contours
- very valuable to display for example electromagnetic field lines
2023-02-13 16:53:21 +01:00
Chris Hennes
3937a746b8 CI: Tweaks to pylintrc 2023-02-13 15:46:28 +01:00
Yorik van Havre
50fb6d6b46 merged crowdin translations 2023-02-13 15:45:26 +01:00
Yorik van Havre
d74c9f0188 updated ts files 2023-02-13 15:45:26 +01:00
luzpaz
50413a1ca1 FEM: fix trailing newlines 2023-02-13 15:41:31 +01:00
Yorik van Havre
190ade8fd7 Merge pull request #8409 from Roy-043/Arch-fix-Arch_Site
[Arch] fix Arch_Site
2023-02-13 14:40:23 +01:00
Uwe
0100a24135 [FEM] fix wrong name in cut filter
- it is the cut, not the clip filter, was probably a copy/paste mistake
- also some automatic code-reformatting according to our current clang file
2023-02-13 14:13:09 +01:00
Uwe
b6ff2ad9fd [FEM] add missing registration of magnetodynamics equation 2023-02-13 14:12:43 +01:00
0penBrain
f31e5066ea CI: improve logging for configure, build and install steps
* Line buffering for stdout and stderr to better preserve log order
 * Full log now contains both stdout and stderr to keep errors in context
2023-02-13 11:27:26 +01:00
0penBrain
c83b530c6e CI: factorize CMake install step in Linux builds 2023-02-13 11:27:26 +01:00
0penBrain
5d107d6762 CI: factorize CMake build step in Linux builds 2023-02-13 11:27:26 +01:00
0penBrain
75db9af607 CI: factorize CMake configuration in Linux builds 2023-02-13 11:27:26 +01:00