Commit Graph

22025 Commits

Author SHA1 Message Date
Yorik van Havre
950a569b44 Merge branch 'master' of github.com:FreeCAD/FreeCAD 2022-03-23 10:51:15 +01:00
Yorik van Havre
1dd773e7b3 Translations: Merged crowdin strings 2022-03-23 10:37:50 +01:00
wmayer
7ff834882e Gui: remove all leftovers of iisTaskPanel 2022-03-23 10:37:28 +01:00
Yorik van Havre
eecef83f28 Merge pull request #6619 from matthijskooijman/draft-misc-fixes
Draft: Misc fixes
2022-03-23 10:30:12 +01:00
Yorik van Havre
36f97d0ea4 Translations: updated ts files 2022-03-23 10:24:55 +01:00
Uwe
cb82d8e97a [FEM] remove some unused includes 2022-03-23 05:43:40 +01:00
Uwe
876b694230 [skip CI] [FEM] whitespace fix 2022-03-23 05:21:48 +01:00
Uwe
389ae0ab39 [FEM] SI unit fixes for Elmer
- since we use consistently SI units (as recommended my the Elmer forum), we need to scale the input mesh (we use ElmerGrid that has an option fur this purpose)
- Since the result will be in the scaled mesh, we need to scale it back

With this PR, one gets now correct result independent of
- the used unit scheme
- the simulation type (electrical or thermo-mechanical)
2022-03-23 05:00:40 +01:00
Uwe
245f5b6c7d [Assembly] remove it
as discussed: https://forum.freecadweb.org/viewtopic.php?p=582152#p582152
2022-03-23 01:59:51 +01:00
Uwe
802aa53aa1 [PD] [skipCI] minor header fixes 2022-03-23 01:37:46 +01:00
Uwe
7c01ddec9a [PD] [skip CI] Helix: consistency adjustment
- in Part and PD we have in Pad/Pocket a step of one for the angle and also the App part of Helix uses already a step of 1
2022-03-23 00:58:21 +01:00
Matthijs Kooijman
214e716a8f Draft: Simplify using getattr instead of hasattr
Using the default argument supported by getattr makes this code a bit
simpler and probably (ever so slightly) faster.

See https://forum.freecadweb.org/viewtopic.php?f=10&t=58611 for previous
discussion.

This is not an exhaustive change, these are just a few I encounted while
working with the code.
2022-03-22 14:46:50 +01:00
Matthijs Kooijman
be69ec5e00 Draft: Fix mixup of TextAlignment vs Justification for Labels
TextAlignment is the vertical alignment, while Justification is the
horizontal alignment. here, get_text was passed the vertical, while it
expected the horizontal. This caused the alignment of a Label to be
wrong in the resulting SVG (e.g. in a TechDraw draft view).

This seems to have been broken since SVG support for Labels was first
introduced in commit 3391a5ea4b (Initial work, only text (no lines)).
2022-03-22 14:46:50 +01:00
Matthijs Kooijman
fd8475b1c6 Draft: Fix SVG generation for label objects
Label objects would produce invalid SVG XML, because the stroke-linecap
property was added as if it was a style (with : and ;), but it was
inserted in the XML tag directly, rather than inside the style attribute
value. The invalid SVG prevented for example a TechDraw draft view from
rendering when it contained a label.

This was added in commit d8c74c06fd (Draft: Using square endcaps for
lines in SVG output).

This stroke-linecap is supported both as a presentation attribute inside
the style or a XML attribute, so for consistency with the surrounding
attributes, it is made a normal attribute, rather than putting it inside
the style.

See also https://developer.mozilla.org/en-US/docs/Web/SVG/Attribute/stroke-linecap
2022-03-22 14:38:36 +01:00
Stefan Brüns
043e6c8ba3 [TechDraw] Replace XQuery based SVG cleanup with DOM traversal
Evaluation of the XQuery has a complexity of more than O(3), as the
underlying QDomNodeModel::compareOrder is quite expensive.

Traversing the DOM tree directly is significantly faster, i.e. it now
takes constantly less time than the actual drawing via QPainter, while
previously it could take several magnitudes more time.

Fixes #6638

Also replace the XQuery used for reparenting the drawing group. Not
performance critical, but significantly simpler code.
2022-03-22 08:44:39 -04:00
Wanderer Fan
1620fd5a69 [TD]fix double units in dxf page export 2022-03-22 08:41:36 -04:00
Yorik van Havre
117aed2d92 Arch: Fixed incomplete detection of 2D objects in IFC export 2022-03-22 12:38:41 +01:00
Yorik van Havre
21b3a862f0 Arch: Fixed export of rebars without host to IFC 2022-03-22 11:59:28 +01:00
Uwe
b935de6851 [FEM] fix unit for Elmer
to assure we use SI units
2022-03-22 05:11:02 +01:00
wmayer
77f28bc667 Image: [skip ci] use ImageGlobal.h 2022-03-21 22:28:38 +01:00
Uwe
5766528ff6 [Cam] Remove the Cam module
as discussed here: https://forum.freecadweb.org/viewtopic.php?p=581725#p581725
2022-03-21 22:21:32 +01:00
Uwe
252905d0c7 [Image] remove a file that is apparently not used 2022-03-21 21:19:56 +01:00
Uwe
e20afbc154 [JtReader] remove unused includes
- also sort some headers out to PreCompiled.h
2022-03-21 18:16:56 +01:00
wmayer
33e9bde149 Mod: [skip ci] add needed headers to fix build failure 2022-03-21 16:33:56 +01:00
Yorik van Havre
dbaf19b442 Arch: Fixed IFC export of compounds and parts 2022-03-21 16:26:43 +01:00
Uwe
12aedf48af [JtReader] fixes to make it compilable 2022-03-21 15:55:50 +01:00
Chris Hennes
2118d544da Addon Manager: Correct error message 2022-03-21 09:24:51 -05:00
Chris Hennes
9fe1bdb092 App: Add Metadata content type test 2022-03-21 09:24:51 -05:00
Yorik van Havre
6160d0fe78 Draft: Restored cloning of arch objects 2022-03-21 15:16:53 +01:00
sliptonic
553554f936 Merge pull request #6612 from mlampert/bugfix/bag-of-minor-isssues
PATH: Bugfix/bag of minor isssues
2022-03-21 08:34:23 -05:00
sliptonic
0643446bb9 Merge pull request #6592 from Russ4262/fix/depth_params_twin_depths
Path: Fix roughly equal depth entries
2022-03-21 08:33:59 -05:00
Yorik van Havre
95e1c97bb1 Arch: Fixed IFC export of rebars 2022-03-21 14:06:19 +01:00
Uwe
f23fa31f42 [Path] remove Python.h and Xerces
they are not needed anymore
2022-03-21 13:18:42 +01:00
wmayer
d7aac0ed60 Mod: [skip ci] add needed headers to fix build failure 2022-03-21 12:04:04 +01:00
Yorik van Havre
b6dabf8247 Merge pull request #6631 from hhassey/master
Fix Arch Panel Trapezoidal Wave Width
2022-03-21 09:30:11 +01:00
Yorik van Havre
0faad0e461 Merge pull request #6618 from matthijskooijman/arch-better-door-reversal
Arch: When inverting hinge position, keep opening direction
2022-03-21 09:28:57 +01:00
oriond
dc1aa369e8 Merge branch 'master' of github.com:FreeCAD/FreeCAD 2022-03-20 20:27:48 -07:00
oriond
3bcab266e9 Arch Fixes Trapezoidal Wave Width on Arch Panels 2022-03-20 20:22:54 -07:00
Uwe
5e6699e48d [TD] remove Python.h and Xerces
seems not to be necessary anymore
2022-03-21 02:53:47 +01:00
Uwe
3c96daf105 [Sketch] remove Python.h and Xerces
seems not to be necessary anymore
2022-03-21 02:51:57 +01:00
Uwe
04ff5ae34e [JtReader] remove Python.h and Xerces 2022-03-21 02:46:04 +01:00
Uwe
bedc26804a [Assembly] remove Python.h and Xerces 2022-03-21 02:44:01 +01:00
Uwe
19072b0538 [Mesh] remove Python.h and Xerces
seems not to be necessary anymore
2022-03-21 01:46:54 +01:00
wmayer
4354e41018 Mesh: [skip ci] fixes #6598: read unitialized variables 2022-03-21 01:27:07 +01:00
Uwe
d5604e0e89 [FEM] remove Python.h and Xerces 2022-03-21 01:22:59 +01:00
Ajinkya Dahale
300fbc22ea [FEM] Refactor TaskFemConstraintOnBoundary (#6615)
* Now the behavior is consistent with behavior of PD fillets, for example.
See https://forum.freecadweb.org/viewtopic.php?f=18&t=67135#p580192. In the
future it may be possible to reuse some code from there.

* When the last selected item is removed we need to reset the existing
highlighting separately.

* Use `Gui::ButtonGroup` in `TaskFemConstraintOnBoundary`
2022-03-21 01:02:10 +01:00
Uwe
d6a9a941ac [Cloud] remove some includes and sorting 2022-03-21 00:13:22 +01:00
Uwe
98e1a6bae4 [Cam] remove Python.h and Xerces 2022-03-20 23:39:43 +01:00
Uwe
1c3ae6cd83 Merge branch 'master' of github.com:FreeCAD/FreeCAD 2022-03-20 23:01:12 +01:00
Uwe
bfbda2e58f [Image] add missing header 2022-03-20 23:01:01 +01:00