Commit Graph

29125 Commits

Author SHA1 Message Date
Uwe
409ccfaaf8 [FEM] fix color bar handling of point filter
- recoloring the gradient bar for a single point is senseless. One therefore already got dozens of errors that max = min in the console. Therefore don't recolor for point filters
2022-06-12 04:02:11 +02:00
Uwe
64e6e7a781 [FEM] fix point filter output
fixes #7008:

- the point data must be read also when the center changed
- when the dialog is called it has only the value for the current field, thus recompute the feature to fill all fields with data
- on clicking on a mesh point display the value at the clicked position
- due to the object's recomputation at the start, a complete recomputation (for the whole pipeline) is needed on closing the dialog
2022-06-12 03:34:02 +02:00
Uwe
94e376346e [FEM] fix display of point filter
- results of 1e8 or 1e-7 in fixed notation are almost unreadable, therefore use scientific notation if necessary
2022-06-12 01:05:26 +02:00
wmayer
6639146f2e PD: allow to set object in shape binder dialog by typing its name 2022-06-12 00:38:48 +02:00
Uwe
658d2b26e9 [FEM] point filter: fix initialization issue
- we cannot assume to have a geometry at position (0, 0, 1) this initialize at (0, 0, 0)
- also don't hardcode the unit in the UI file

- also fix wrong property description
- property "Radius" is not used in the code and it seems it is only there as copy paste bug once the point filter was implemented. However close to a release, keep the property and just mention it is unused.
2022-06-12 00:25:58 +02:00
wmayer
cbad816a3f PD: use WeakPtr to avoid any possible dangling pointers 2022-06-11 23:37:33 +02:00
VM4Dim
9a4af08b71 Fix for non-Latin Group name in Tree View 2022-06-11 15:24:25 -04:00
wmayer
0a5f47fe03 PD: show object label instead of internal name in shape binder dialog 2022-06-11 21:00:15 +02:00
wmayer
36208f38e0 Test: [skip ci] extend test for issue #6949 2022-06-11 16:10:09 +02:00
0penBrain
7892f31c31 Expression: add unit test for issue #6948 2022-06-11 15:59:06 +02:00
0penBrain
d96a7ac9d8 [Bugfix] Expression: fix precedence+associativity management in parenthesis removal
Fixes #6948
2022-06-11 15:59:06 +02:00
wmayer
b7d8d26c52 Part: do not expect a face to be infinite if meshing it has failed
See https://forum.freecadweb.org/viewtopic.php?p=601240#p601240
2022-06-11 13:01:15 +02:00
Uwe
64f9edf52c [FEM] fix unit handling of filter functions
- the function properties use already units but the dialogs were unitless
2022-06-11 04:54:51 +02:00
Uwe
27de11d82f [skip CI] [FEM] sort UI file
I forgot to use our UI sorter
2022-06-11 04:46:21 +02:00
Uwe
a002957cb4 [skip CI] [FEM] whitespace and comments to keep overview 2022-06-11 04:28:21 +02:00
Uwe
dffe68ba73 [Path] fix compilation with precompiled headers
- also sort includes to keep overview
2022-06-11 00:56:00 +02:00
Wanderer Fan
bc92b424d6 [TD]fix icons for dark schemes 2022-06-10 17:49:43 -04:00
sliptonic
065e2ab988 Merge pull request #6886 from younghang/master
Path: Fix PointProjectionFailed
2022-06-10 09:06:38 -05:00
Uwe
8bcab38d76 [FEM] fix unit handling of line filter
- in contrary to other filters the properties have no unit handling
(there are several bugs in line filter and to fix them, unit handling is necessary)
2022-06-10 14:17:42 +02:00
Uwe
6e1fc33efd [skip CI] [FEM] fix initialization mistake
- initial point should be (0, 0, 0)
  (mistake introduced by me today)
2022-06-10 14:11:42 +02:00
Uwe
2aa6d0f02a [FEM] fix illegal storage access in point filter
- occurred when changing Field to "None"

- also remove doubled and unused code and add a blank line to separate the different filters in the code better
2022-06-10 13:16:23 +02:00
Yorik van Havre
3af0623431 Merged crowdin translations 2022-06-10 11:03:57 +02:00
Yorik van Havre
6aaa94d2f2 Updated ts files 2022-06-10 10:29:18 +02:00
Uwe
1145a9a06e [FEM] fix unit handling of point result filter
- the App part used already units but the dialog worked unitless. This is error-prone and confusing. Therefore use unit widgets in the dialog.
- also fix issue that unit was not reset (after e.g. a temperature maybe a unitless strain should be shown)
2022-06-10 04:20:25 +02:00
Uwe
a37ca0e175 [skip CI] [PD] fix typo 2022-06-10 03:39:04 +02:00
Chris Hennes
897a0f0ad9 Addon Manager: Fix bug in macro git repo 2022-06-09 19:50:05 -05:00
Uwe
6fadcdeed3 [FEM] fix unit settings of data point filter 2022-06-10 02:42:17 +02:00
Uwe
779a4635d9 [FEM] allow to copy and edit result data
- at the moment you cannot get the result data, for example to make your own plot. Also for the line you might want to have unequal x-steps etc. Especially for the data point filter not getting the data actually makes the tool quite useless.
- therefore set the properties to output
2022-06-10 02:41:08 +02:00
Uwe
082eacf139 [FEM] fix result point filter upon line filter
having a point filter on a line filter is valid and useful, was maybe just forgotten once the line filter was added
2022-06-10 01:43:22 +02:00
Uwe
78ab4ebf4c [FEM] fix issue that all plot windows had the same name
- they all had the name "figure 1"
- thus make the name unique and this way also enable to have several plots open displaying different result types (for the line filter)
2022-06-10 00:55:02 +02:00
marioalexis
1ce36f6d1b App: Clean up code in PropertyContainerPyImp.cpp 2022-06-09 18:46:41 -04:00
marioalexis
c88e7c1ae5 App: Improve docstrings in PropertyContainerPy.xml 2022-06-09 18:46:41 -04:00
Uwe
44fd302964 [FEM] fix detached plot (#6998)
* [FEM] fix detached plot

the stress linearization plot is at the moment detached from FreeCAD's main window.
This PR fixes it the same way as in https://github.com/FreeCAD/FreeCAD/commit/307bab074
2022-06-10 00:34:05 +02:00
Uwe
fcd606fbff [FEM] fix linear filter plot (#6999)
* [FEM] fix linear filter plot

the plot one can create from within the linear filter is at the moment detached from FreeCAD's main window.
This PR fixes it the same way as in https://github.com/FreeCAD/FreeCAD/commit/307bab074
2022-06-10 00:33:27 +02:00
marioalexis
178eaadfc8 App: Improve docstrings in MetadataPy.xml and fix memory leak 2022-06-09 17:48:45 -04:00
wmayer
6c0a610fb1 App: issue #6892: FreeCAD fails to start 2022-06-09 15:40:37 +02:00
Yorik van Havre
56264248eb Merged crowdin translations 2022-06-09 13:40:35 +02:00
wmayer
3057abfae9 Gui: use expresion 'keyboard shortcut' to avoid incorrect translation 2022-06-09 13:15:41 +02:00
wmayer
97806748a0 Mesh: [skip ci] improve German translation 2022-06-09 12:56:43 +02:00
wmayer
86c61ff150 ReverseEngineering: [skip ci] improve German translation 2022-06-09 12:33:12 +02:00
wmayer
d01cb7838d FEM: improve German translation 2022-06-09 12:27:43 +02:00
Zheng Lei
fb457594fd Spreadsheet: fix range checking (#6997)
* App: add option to normalize a Range

- To make sure the range starts from top left and ends with bottom right
corner.
- Default is to not normalize on construction for backward compatibility.
-  fix range checking in range binding
2022-06-09 12:20:08 +02:00
wmayer
9cd7500d65 Gui: improve German translation 2022-06-09 12:15:29 +02:00
Uwe
f50eced9fe [Spreadsheet] uniform and polish wording of binding feature 2022-06-09 02:14:14 +02:00
marioalexis
a72d1c7b7d Gui: Improve docstrings in AxisOriginPy.xml 2022-06-08 20:20:57 +02:00
marioalexis
abacd5741c App: Improve docstrings in GeoFeaturePy.xml 2022-06-08 19:20:04 +02:00
Zheng Lei
3e81bd8c15 Spreadsheet: improve range binding feature (#6995)
* Spreadsheet: improve range binding feature
2022-06-08 19:19:41 +02:00
0penBrain
4900d90ba9 [FEM] Implement a better dialog layout management for histogram (#6989)
* [FEM] Implement a better dialog layout management for histogram
2022-06-08 16:51:01 +02:00
Chris Hennes
7e71db6fa8 Sketcher: Tweak pluralization of DoF 2022-06-08 09:16:48 -05:00
Yorik van Havre
e8aa6ec7f2 Merge pull request #6991 from 0penBrain/draftGrid
Draft: fix grid spacing default initialization
2022-06-08 13:22:45 +02:00