Markus Reitböck
c1be416c7f
Fem: use CMake to generate precompiled headers on all platforms
...
"Professional CMake" book suggest the following:
"Targets should build successfully with or without compiler support for precompiled headers. It
should be considered an optimization, not a requirement. In particular, do not explicitly include a
precompile header (e.g. stdafx.h) in the source code, let CMake force-include an automatically
generated precompile header on the compiler command line instead. This is more portable across
the major compilers and is likely to be easier to maintain. It will also avoid warnings being
generated from certain code checking tools like iwyu (include what you use)."
Therefore, removed the "#include <PreCompiled.h>" from sources, also
there is no need for the "#ifdef _PreComp_" anymore
2025-09-23 00:51:00 +02:00
Jacob Oursland
5b81cd741a
python: apply const method annotations to impls.
2025-04-16 20:32:04 -07:00
marioalexis
5a7bc6101b
Fem: Add set of mesh elements from a list
2024-09-15 20:47:09 -03:00
Chris Hennes
6f277af10a
FEM: Remove set but unused variable
2024-06-24 18:17:11 +02:00
marioalexis
087788cb36
Fem: Add element types to ABAQUS writer
2024-04-16 11:28:52 -03:00
wmayer
91a40b2007
Fem: Apply clang-format
2023-09-25 14:50:43 +02:00
wmayer
009f9f2222
FEM: modernize C++: use range-based for loop
2023-08-15 01:09:53 +02:00
marioalexis
976b0b8d3f
Fem: Implement getNodeElements function
2023-02-21 03:13:13 +01:00
Uwe
3b4cbbb943
[FEM] FemMesh*: remove unused includes
...
- also sort includes
2022-10-03 00:47:24 +02:00
berniev
da9ebc572f
Mod: redundant void 2
2022-08-08 10:27:50 +02:00
Uwe
fc548a4b34
[FEM] remove superfluous nullptr checks
2022-07-18 01:45:19 +02:00
wmayer
d1ef818f39
Fem: replace PyObject_IsTrue with Base::asBoolean
2022-07-16 13:37:55 +02:00
Chris Hennes
bb0e2f1c51
FEM: PR6497 move return statement to new line
2022-03-29 12:35:58 -05:00
wmayer
d4da6b21e2
Fem: include Python.h before any vtk headers to fix compiler warnings
2022-03-24 20:05:27 +01:00
wmayer
7ae9fc0d67
Fem: modernize C++11
...
* use nullptr
2022-03-23 19:26:15 +01:00
Uwe
d5604e0e89
[FEM] remove Python.h and Xerces
2022-03-21 01:22:59 +01:00
wmayer
9160f06e1c
Base: rename BaseExceptionFreeCADError to PyExc_FC_GeneralError
2022-03-17 14:45:48 +01:00
wmayer
d69defaa3c
Py: replace BaseExceptionFreeCADError with more suitable exception types
2022-03-17 13:54:23 +01:00
wmayer
8d3c66cf18
Core/Mod: modernize C++11
...
* use nullptr
2022-03-09 21:55:31 +01:00
marioalexis
efe0a39d34
Fem: Call PyMem_Free() to free allocated buffer
2022-02-09 16:05:14 +01:00
Bernd Hahnebach
991817a47d
FEM: cpp python mesh api, fix crash if not existing group was given in get name method
2021-06-24 17:25:54 +02:00
luz paz
1e795e869c
[FEM] remove Py2 code
2021-04-25 11:25:29 +02:00
wmayer
a96f6619a7
Fem: Python header must be included before vtk headers to avoid re-definition of macro _LARGEFILE_SOURCE
2020-10-18 14:45:31 +02:00
joha2
f90a88ce3c
FEM: add methods to to edit mesh groups:
...
- add addGroup, addGroupElements, removeGroup to C++ mesh class
- expose the methods to Python
- add a unit test class
- update test commands file
- add test to fem test app module
2020-05-23 14:56:15 +02:00
luz.paz
1baf5da3cf
FEM: [skip ci] fix header uniformity
...
This PR fixes header uniformity across all FEM WB files
2019-12-21 20:00:14 +01:00
Zheng, Lei
71c54272a0
Fix various Py::Object leak
2019-10-08 17:53:20 +02:00
Abdullah Tahiri
676a4f0457
PCH: Fem App
2019-05-16 21:43:07 +02:00
wmayer
e385ed7809
add convenience functions to get element type to id and vice versa
2019-01-20 17:58:30 +01:00
wmayer
76c9540009
fix crash when accessing invalid group
2019-01-20 17:57:08 +01:00
looooo
d4461f351c
add function to retrive femmesh edges by a TopoDS_Edge
2018-11-09 11:11:59 +01:00
looooo
57a8fddba0
Fem: fenics: py3-fixes
2018-06-04 10:02:09 +02:00
luz.paz
ba9dba4b26
FEM: typo fixes
2018-04-29 20:40:15 +02:00
wmayer
68cc427b00
Improve handling of external smesh
...
+ add SMESH_version.h.cmake to set full version number instead of using compiler define
+ do not set include path of smesh globally
+ do not set library path of smesh globally
+ do not set HAVE_NETGEN define globally
+ improve using debug and release libs of smesh for MSVC
2018-04-28 12:10:55 +02:00
looooo
547cc9f36c
external smesh: use version info
...
for precompiler conditionals
2018-04-28 12:05:30 +02:00
looooo
21cdc9ea4a
port to smesh 8.3
...
using #ifdef EXTERNAL_SMESH for the diff
2018-04-28 12:05:30 +02:00
Bernd Hahnebach
f271e52b3d
FEM: Abaqus writer, add method parameter for elem and group options
2017-11-25 16:54:02 -02:00
Bernd Hahnebach
1f11a3cc8e
FEM: mesh api, add EdgesOnly and FacesOnly
2017-11-25 16:54:02 -02:00
wmayer
949c86d364
Port to occ7.2:
...
+ Standard_Failure::Caught() is now marked as deprecated and should be replaced with standard C++ exception handling
2017-09-01 16:27:46 +02:00
Peter Lama
a75a98ef27
Use OCCT Handle macro for Handle_ classes
...
This is the result of running OCCT's upgrade script provided
with OCCT 7.0. See
https://www.opencascade.com/content/freecad-occt710-and-windows-rtti-data-missing#comment-form
and
https://www.forum.freecadweb.org/viewtopic.php?f=4&t=21405&start=120#p169019
for why this is necessary for OCCT >= 7.1
2017-04-20 12:27:34 +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
b2767f7197
rearrange headers to avoid warning
2016-12-30 13:31:08 +01:00
wmayer
68ea7fdac5
fix coverity issues
2016-10-08 17:43:30 +02:00
wmayer
386e3d7024
do not handle enum value SMDSAbs_NbElementTypes
2016-10-01 13:34:37 +02:00
Bernd Hahnebach
efb87dc1c0
FEM: python mesh API, add methods to retrieve group data
2016-10-01 13:20:38 +02:00
Bernd Hahnebach
084e163137
FEM: add GroupID to python mesh API
2016-09-27 13:04:47 -03:00
wmayer
0d010d0418
fix crash in FemMeshPy::addVolume
2016-08-19 16:56:05 +02:00
Bernd Hahnebach
55873e71bf
FEM: mesh python api, add methods to add edges with id
2016-08-15 21:38:31 +02:00
Bernd Hahnebach
a39f57c7cc
FEM: mesh python api, add method to add faces with id
2016-08-15 21:38:09 +02:00
Bernd Hahnebach
421b3f5abb
FEM: mesh python api, delete some empty lines
2016-08-15 21:37:35 +02:00