Commit Graph

22060 Commits

Author SHA1 Message Date
sliptonic
05a8b67dce Merge pull request #6649 from sliptonic/bug/5832
[Path] Fixes #5832
2022-03-23 18:51:20 -05:00
luz paz
089c975a73 FEM: minor fix in warning text [skip ci] 2022-03-23 23:59:22 +01:00
wmayer
97330443a2 All: modernize C++11
* replace deprecated headers
2022-03-23 22:44:18 +01:00
Uwe
8d618d44c0 [FEM] post object: some whitespace and style fixes
all made by MSVC
2022-03-23 21:51:25 +01:00
Uwe
06622dfc85 [PD] Task dialogs: remove unused headers 2022-03-23 19:43:47 +01:00
Uwe
e92fbceb7e [PD] Helix: catch case of touching Helix
when the helix touches itself along a single helical edge one gets a cryptic error.
This PR gives the user feedback what is going on.
2022-03-23 19:29:23 +01:00
Uwe
ea81ce76b4 [PD] fix #6482
The idea with the large factor, introduced in #5363 fixed real bugs, so it should not be reverted.
However we must compensate the factor at the path position movement. Otherwise we get wrong helix positions when the angle is negative.

The PR was tested with the files in the bug reports:
https://forum.freecadweb.org/viewtopic.php?f=3&t=65136
https://forum.freecadweb.org/viewtopic.php?p=572618#p572618
2022-03-23 19:29:02 +01:00
wmayer
7ae9fc0d67 Fem: modernize C++11
* use nullptr
2022-03-23 19:26:15 +01:00
wmayer
51b94abfde Start: modernize C++11
* use nullptr
2022-03-23 19:26:15 +01:00
wmayer
ead5154b18 Sketcher: modernize C++11
* use nullptr
2022-03-23 19:26:15 +01:00
wmayer
d231a7c7db Reen: modernize C++11
* use nullptr
2022-03-23 19:26:15 +01:00
wmayer
7b591da9f5 Path: modernize C++11
* use nullptr
2022-03-23 19:26:15 +01:00
wmayer
b5c71395f1 Measure: modernize C++11
* use nullptr
2022-03-23 19:26:15 +01:00
wmayer
98b69b8fb9 Inspection: modernize C++11
* use nullptr
2022-03-23 19:26:15 +01:00
wmayer
d1459f6d32 Import: modernize C++11
* use nullptr
2022-03-23 19:26:15 +01:00
wmayer
618deb751f Draft: modernize C++11
* use nullptr
2022-03-23 19:26:15 +01:00
wmayer
46117f0ae1 Drawing: modernize C++11
* use nullptr
2022-03-23 19:26:15 +01:00
wmayer
2c229d3bc0 Spreadsheet: modernize C++11
* use nullptr
2022-03-23 19:26:14 +01:00
wmayer
80ca13c667 Raytracing: modernize C++11
* use nullptr
2022-03-23 19:26:14 +01:00
wmayer
aada33a574 Web: modernize C++11
* use nullptr
2022-03-23 19:26:14 +01:00
wmayer
f19ab55b48 Surface: modernize C++11
* use nullptr
2022-03-23 19:26:14 +01:00
wmayer
fb4e8e871b Cloud: modernize C++11
* use nullptr
2022-03-23 19:26:14 +01:00
wmayer
1c93e5ac87 MeshPart: modernize C++11
* use nullptr
2022-03-23 19:26:14 +01:00
wmayer
be16b749b5 Mesh: modernize C++11
* use nullptr
2022-03-23 19:26:14 +01:00
wmayer
a99be14233 TD: modernize C++11
* use nullptr
2022-03-23 19:26:14 +01:00
wmayer
3608ee7f51 PD: modernize C++11
* use nullptr
2022-03-23 19:26:14 +01:00
wmayer
068c0e5a98 Part: modernize C++11
* use nullptr
2022-03-23 19:26:14 +01:00
wmayer
f265c15ac0 Robot: modernize C++11
* use nullptr
2022-03-23 19:26:14 +01:00
wmayer
91d679dbc4 Image: modernize C++11
* use nullptr
2022-03-23 19:26:14 +01:00
Uwe
2f0a2b79eb [PD] ShapeBinder: re-add an include that I recently incorrectly removed 2022-03-23 18:58:36 +01:00
Uwe
348562ddcc [FEM] header files: remove unused includes 2022-03-23 17:36:08 +01:00
Uwe
5496accd5f [Path] Fixes #5832
Remove unused and confusing spiral and triangle patterns
2022-03-23 10:35:58 -05:00
Uwe
6cf4b71b0f [Image] [skip CI] add a comment 2022-03-23 16:26:58 +01:00
Uwe
ec113193ef [FEM] revert incorrect header removal
- also add comment to prevent this in future
2022-03-23 16:22:57 +01:00
Uwe
0419d2f756 [FEM] Electrostatic: read values with its unit 2022-03-23 16:03:35 +01:00
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