pre-commit-ci[bot]
9fe130cd73
All: Reformat according to new standard
2025-11-11 13:49:01 +01:00
PhoneDroid
a2d8b8bf6f
[ Mesh ]: Update SPDX License Identifiers
2025-11-02 15:49:56 -06:00
Markus Reitböck
2f59a590b8
Mesh: 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-22 23:17:40 +02:00
wmayer
85cf53cb83
Mesh: Fix crash MeshPy::setPoint & MeshPy::movePoint
...
Fixes https://github.com/FreeCAD/FreeCAD/issues/18823
2025-08-25 10:55:53 -05:00
Jacob Oursland
5c251e73ac
python: apply const method annotations to impls.
2025-04-16 20:32:04 -07:00
Chris Mayo
7aedf91a1c
Remove MeshPy::coarsen() and code using GTS
...
FC_USE_GTS not used since before:
1162aaea88 ("Remove references to gts and ode", 2012-07-05)
GTSAlgos.h and GTSAlgos.cpp removed in:
db5c8f7db8 ("[Mesh] remove GTSAlgos", 2022-11-11)
MeshPy::coarsen() added not later than 2011 and never implemented.
2024-11-29 23:42:28 +01:00
wmayer
a7ae00237d
Mesh: fix many linter warnings
2024-03-12 00:36:28 +01:00
mosfet80
f9f1f88426
casts clean ( #11548 )
...
* remove unecessary casts
clean unused code
revert example py code
* [pre-commit.ci] auto fixes from pre-commit.com hooks
for more information, see https://pre-commit.ci
---------
Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
2023-12-04 10:51:36 -06:00
Chris Hennes
cfd41683a5
Core: Enable compiling with MSVC /permissive- ( #11014 )
...
* Base: Fixes for MSVC permissive-
* App: Fixes for MSVC permissive-
* Gui: Fixes for MSVC permissive-
* Main: Fixes for MSVC permissive-
* Fem: Fixes for MSVC permissive-
* Material: Fixes for MSVC permissive-
* Part: Fixes for MSVC permissive-
* Mesh: Fixes for MSVC permissive-
* Points: Fixes for MSVC permissive-
* Robot: Fixes for MSVC permissive-
* TechDraw: Fixes for MSVC permissive-
* Path: Fixes for MSVC permissive-
* Core; Changes per review comments
* TD: Revision from wandererfan
* [pre-commit.ci] auto fixes from pre-commit.com hooks
for more information, see https://pre-commit.ci
---------
Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
2023-11-27 17:37:29 +01:00
wmayer
a364141c58
Mesh: C++ core guidelines
2023-09-26 11:20:35 +02:00
wmayer
23db389a76
Mesh: Apply clang-format
2023-09-23 14:03:11 +02:00
Chris Hennes
79286f30da
Mesh: Wrap PyArg_ParseTupleAndKeywords
2023-08-25 15:34:26 -05:00
wmayer
7f49080952
Mesh: modernize C++: use range-based for loop
2023-08-15 10:56:30 +02:00
wmayer
ec73caa40e
modernize C++: make unique
2023-08-07 19:51:30 -06:00
luz paz
c174e063f3
Mesh: remove trailing whitespace
2022-11-14 21:37:03 -06:00
Uwe
356ae47332
[Mesh] Imp* - end: remove unused includes
...
- also some sorting
2022-11-11 03:34:31 +01:00
wmayer
1309b86ea5
App: move from float to double for accuracy parameter, add a virtual method to determine a default accuracy
2022-09-15 09:52:14 +02:00
berniev
180edfa3cc
Mod: Single arg ctors must be explicit
2022-08-24 16:55:20 +02:00
wmayer
54a0f44b81
Mesh: implement smoothing based on median filter
2022-08-06 16:08:20 +02:00
wmayer
23b05a5fe7
Mesh: consider placement in MeshPy::foraminate
2022-08-05 00:46:48 +02:00
wmayer
0b4fcb8f20
Mesh: consider placement in MeshPy::nearestFacetOnRay
2022-08-04 20:47:33 +02:00
wmayer
b0a5743264
Mesh: consider placement in MeshPy::getCurvaturePerVertex
2022-08-04 11:09:47 +02:00
wmayer
c8c311c981
Mesh: refactor MeshPy::getSelfIntersections
2022-08-04 10:34:49 +02:00
wmayer
dd5fa8b6e0
Mesh: refactor MeshPy::writeInventor
2022-08-03 17:56:24 +02:00
Uwe
763a575b23
Mod: remove some unnecessary nullptr checks
2022-07-18 12:58:12 +02:00
wmayer
936bc03959
Mesh: replace PyObject_IsTrue with Base::asBoolean
2022-07-16 13:33:18 +02:00
wmayer
91e9c72357
Mesh: [skip ci] allow to set third parameter in Python wrapper
2022-07-15 17:39:33 +02:00
wmayer
f5235a8057
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
marioalexis
74c168a082
Mesh: Use PyObject_IsTrue in combination with conditional ternary operator
2022-06-22 19:50:03 -04:00
wmayer
8a81ff174b
Mesh: reduce the use of const_cast in Mesh module
2022-06-21 12:20:37 +02:00
Zheng, Lei
8bec44934b
Fix mixed line endings
2022-04-26 12:52:55 -05:00
Chris Hennes
3ecd16e0bd
Mesh: PR6497 move return statement to new line
2022-03-29 12:36:30 -05:00
wmayer
e4d1ed8366
Base: rename BaseExceptionFreeCADError to PyExc_FC_GeneralError
2022-03-17 14:45:48 +01:00
wmayer
1f12dca2b4
Py: replace BaseExceptionFreeCADError with more suitable exception types
2022-03-17 13:54:23 +01:00
wmayer
bb52889c68
Mesh: [skip ci] replace some casts
2022-03-16 08:46:21 +01:00
wmayer
91e4e468dd
Base: move ILogger sub-classes to their own source files in order to reduce including stream classes in client code
2022-03-06 10:13:47 +01:00
mwganson
52925f65d2
Mesh: fix test code so it will compile when used
2022-02-14 14:06:09 +01:00
wmayer
4e1ce8a15f
Mesh: overload MeshAlgorithm::NearestFacetOnRay to set a max. angle between facet and ray
2022-02-13 12:46:01 +01:00
wmayer
59e605e6b8
Mesh: modernize C++11
...
* remove redundant void-arg
* use nullptr
* replace deprecated headers
2022-01-26 18:05:02 +01:00
wmayer
5abe0ba77f
Mesh: add basic support of 3MF file format
2021-10-22 17:11:16 +02:00
wmayer
bbe2865059
Mesh: expose trimByPlane to Python
2021-10-15 23:07:59 +02:00
wmayer
b5c012a301
Mesh: implement sub-element handling
2021-10-06 17:19:38 +02:00
wmayer
210eac2a09
Mesh: improve function to fix points on edge
2021-09-29 19:32:18 +02:00
wmayer
3922a6ac73
Mesh: detect points on edges
2021-09-28 22:30:21 +02:00
wmayer
5694f08f15
Mesh: add function section() to Mesh class
2021-09-16 17:31:45 +02:00
wmayer
2295c4b9a3
Mesh: define the typenames FacetIndex and PointIndex to distinguish between facet and point related indexes
2021-09-14 23:01:29 +02:00
luz paz
2321c90c76
Mesh: remove py2 code
2021-04-25 11:26:39 +02:00
wmayer
479a1fc9c9
Mesh: [skip ci] expose some mesh evaluation functions to Python
2021-02-14 12:02:45 +01:00
wmayer
18dc155b3f
Mesh: [skip ci] fix MeshPy::trim
2021-02-07 13:12:23 +01:00
wmayer
c0588f0c41
Mesh: [skip ci] support compressed X3D output
2020-08-29 14:56:41 +02:00