Commit Graph

40 Commits

Author SHA1 Message Date
Ladislav Michl
e4d304f934 Base: Implement TimeElapsed
Some instances of TimeInfo serve the sole purpose of measuring time
duration. Using system time is unfortunate as it returns wall clock,
which is not guaranteed to be monotonic. Replace such a usage with
the new TimeElapsed class based on steady clock.
2024-03-05 12:29:24 +01:00
wmayer
b8b94c249e Fem: Apply clang-format 2023-09-25 14:50:43 +02:00
wmayer
f2b46996d4 Fem: modernize C++: return braced init list 2023-08-19 11:35:41 +02:00
wmayer
009f9f2222 FEM: modernize C++: use range-based for loop 2023-08-15 01:09:53 +02:00
Uwe
1527a731e7 [FEM] ViewProviderFem*: remove unused includes
- also sort includes
2022-10-03 15:01:37 +02:00
berniev
da9ebc572f Mod: redundant void 2 2022-08-08 10:27:50 +02:00
wmayer
1aa897d450 Fem: remove some superfluous const_cast 2022-06-24 19:43:33 +02:00
wmayer
c955372ecf cppcoreguidelines-pro-type-union-access
According to https://github.com/isocpp/CppCoreGuidelines/blob/master/CppCoreGuidelines.md using union for type-punning is undefined behaviour.
 Replace it with std::memcpy
2022-06-24 14:29:50 +02:00
wmayer
7ae9fc0d67 Fem: modernize C++11
* use nullptr
2022-03-23 19:26:15 +01:00
Uwe
1ddb4d27e7 [FEM] remove unused headers from WBs main files
- also some code style fixes by MSVC
2022-03-17 20:33:33 +01:00
wmayer
d69defaa3c Py: replace BaseExceptionFreeCADError with more suitable exception types 2022-03-17 13:54:23 +01:00
Bernd Hahnebach
018d5d8d6f FEM: mesh view provider, expose some C++ methods to Python 2020-01-06 01:07:47 +01:00
Abdullah Tahiri
241c370f5f PCH: Fem Gui 2019-05-16 21:43:08 +02:00
wmayer
00bf21dc26 fixes 0003618: FEM, GUI, mesh view provider, highlighted node show wrong node number on selection 2018-09-26 19:59:32 +02:00
Bernd Hahnebach
62bbda819b FEM: set mesh color, use proper return values for python API 2017-08-02 12:45:15 +02:00
Kunda
90aeb372f5 FEM: source code typos, issue 0002914 2017-02-28 17:35:26 +01:00
looooo
5c0bcf611f py3: FEM, PyMods, preprocessor conditions, Py::Long vs Py::Int 2017-02-19 14:21:34 +01:00
wmayer
f3f0f5bd2e fix Coverity issues 2016-08-20 15:41:33 +02:00
Bernd Hahnebach
fe47ef78ab FEM: code formating, replace tabulator with spaces 2016-08-15 21:39:01 +02:00
Bernd Hahnebach
b58e37b950 FEM: remove trailing whitespaces 2016-04-24 19:10:33 +02:00
wmayer
18f0ec61eb + fix crash in ViewProviderFemMesh::setHighlightNodes when values out of range 2015-07-12 10:47:57 +02:00
Przemo Firszt
4caa464ebb FEM: All FEM results are stored in a single object
Functionality previously provided by setNodeColorByResult is now
in setNodeColorByScalars. FemResult* object is no longer required,
the function accepts list of elements and a list of values.

Functionality previously provided by setNodeDisplacementByResult is now
in setNodeDisplacementByVectors. FemResult* object is no longer required,
the function accepts list of elements and a list of vectors.

A side effect: FemResultValues and FemResultVector are no longer used
and have bee removed.

Signed-off-by: Przemo Firszt <przemo@firszt.eu>
2015-06-24 17:44:02 +02:00
Przemo Firszt
4e94c02dda FEM: Rename animateNodes to applyDisplacementToNodes
Also animateNodes is now applyDisplacementToNodes.
The funcions are not doing animation, but are responsible
for deforming mesh.

Signed-off-by: Przemo Firszt <przemo@firszt.eu>
2015-06-02 11:35:34 +01:00
Sebastian Hoogen
5e51a6cdf7 fixes #0001422: Subclass Exception
inherit Base.FreeCADError form RuntimeError
inherit Part.OCCError from Base.FreeCADError
inherit OCCDomainError from Part.OCCError
inherit OCCRangeError from Part.OCCError
inherit OCCConstructionError from OCCDomainError
inherit OCCDimensionError from OCCDomainError
Added PY_CATCH_OCC macro
replace PyExc_Exception
use FreeCADError in makeWireString
catch exception in BSplineCurve.increasedegree
2014-09-17 11:15:56 +02:00
wmayer
cc775f9254 + fix -Wnull-conversion, -Woverloaded-virtual, -Wlogical-not-parentheses, -Wsometimes-uninitialized 2014-08-26 19:14:13 +02:00
jriegel
2bf7083db4 fix FEM result dialog 2014-04-14 03:17:37 +02:00
jriegel
a988ead620 Fix in color calculation 2014-04-13 18:03:04 +02:00
jriegel
eadc02d65d some fixes in Fem 2014-04-13 16:42:41 +02:00
jriegel
cd69467ede Finish get nodes by surface 2014-02-09 17:55:35 +01:00
jriegel
6078846fa2 Increase Performance Postprocessing 2014-01-11 14:50:22 +01:00
jriegel
c71c1b8679 Improving Post-Processeing performance 2014-01-11 14:50:08 +01:00
jriegel
efc311f908 Postprocessing: Color per Element at FemMesh 2013-12-31 13:52:13 +01:00
jriegel
9a239261bb fix in get visible faces 2013-12-02 20:35:12 +01:00
jriegel
09fe84abbf Finish Displacement and animation of it. 2013-11-28 23:30:21 +01:00
jriegel
61e289036e Starting Displacement post-processing to the FemMesh ViewProvider 2013-11-28 19:52:58 +01:00
jriegel
7336a31e44 Add Attribute to FemMeshViewProvider python class to get all visible FemMesh faces. 2013-11-17 13:08:45 +01:00
jriegel
c6fec1373d Fem Postprocessing set color on nodes 2013-09-11 20:00:51 +02:00
jriegel
66cab2d207 Fix visual glich in Mesh and start proprocessing 2013-09-02 20:53:53 +02:00
jriegel
dca9a25a2b Nicer more informative Isostatic dialog 2013-08-15 22:50:09 +02:00
jriegel
a5262f9cb7 Add python object for the FemMesh ViewProvider for later postprecessing capabilities 2013-08-04 20:39:08 +02:00