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
marioalexis
a91e32a6f4
Mesh: Use PyObject_IsTrue in combination with conditional ternary operator
2022-06-22 19:50:03 -04:00
wmayer
e7a9081097
Mesh: replace boost::bind with std::bind
2022-06-21 15:23:47 +02:00
wmayer
0a4488462c
Mesh: reduce the use of const_cast in Mesh module
2022-06-21 12:20:37 +02:00
Uwe
7c98361447
[Meh] Core: remove unnecessary Boolean comparisons - part 2/2
2022-06-19 18:22:22 +02:00
Uwe
a922605821
[Meh] Core: remove unnecessary Boolean comparisons - part 1
2022-06-19 18:12:56 +02:00
wmayer
79df90a45c
Mesh: fixes #7018 : 3mf created with FreeCAD cannot be loaded with PrusaSlicer
2022-06-14 18:55:05 +02:00
wmayer
b85e9b1fe4
Mesh: fixes #6902 : Conda test errors
2022-06-14 11:32:07 +02:00
wmayer
2e7a7e70b0
Mesh: [skip ci] use const-reference when iterating over list
2022-05-17 15:52:43 +02:00
wmayer
eca8c9dbe2
Mesh: improve OBJ import by allowing arbitrary names for the mtllib file
2022-05-17 15:02:59 +02:00
wmayer
bb028c7989
Mesh: modernize MeshIO classes
2022-05-17 12:20:22 +02:00
wmayer
354bfb5c5b
Mesh: implemented recommended move constructor and move assignment for Point3d
2022-05-17 11:55:33 +02:00
wmayer
3fbc9992e8
Mesh: avoid problematic const_cast
2022-05-17 11:54:11 +02:00
wmayer
74ead2c6ff
Mod: whitespace fixes
2022-05-17 11:51:22 +02:00
Zheng, Lei
3ef438eaf0
Fix mixed line endings
2022-04-26 12:52:55 -05:00
Chris Hennes
702238a99c
Mesh: PR6497 move return statement to new line
2022-03-29 12:36:30 -05:00
wmayer
99fd8af911
Mesh: include header with export macros
2022-03-24 20:42:15 +01:00
wmayer
97330443a2
All: modernize C++11
...
* replace deprecated headers
2022-03-23 22:44:18 +01:00
wmayer
be16b749b5
Mesh: modernize C++11
...
* use nullptr
2022-03-23 19:26:14 +01:00
Uwe
19072b0538
[Mesh] remove Python.h and Xerces
...
seems not to be necessary anymore
2022-03-21 01:46:54 +01:00
wmayer
c9a0fae9db
lgtm: [skip ci] FIXME comment
...
Change FIXME or remove it
2022-03-20 16:51:23 +01:00
wmayer
cb81addfa1
Mesh: [skip ci] lgtm: Multiplication result converted to larger type
...
Multiplication result may overflow 'float' before it is converted to 'double'.
2022-03-20 15:53:04 +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
67bbb3ba79
Mesh: [skip ci] replace some casts
2022-03-16 08:46:21 +01:00
wmayer
0054cbddaa
Fix coverity issue:
...
* CID 332682: Resource leak
* CID 350607: Resource leak
* CID 332677: Resource leak
2022-03-14 11:35:04 +01:00
wmayer
f6f21f4fa6
Mesh: Fix several coverity issues:
...
* CID 350557: Out-of-bounds read (false-positive)
* CID 316517: Uninitialized scalar variable
* CID 316519: Uninitialized scalar variable
* CID 316547: Uninitialized scalar variable
* CID 316556: Uninitialized scalar variable
* CID 350614: Uncaught exception
* CID 350606: Uncaught exception
* CID 332681: Using invalid iterator
2022-03-13 14:58:14 +01:00
wmayer
e4435cdcba
Base/App: fix warnings from code analysers:
...
* convert old-style-casts to explicit C++ casts where possible
* make some implicit conversions explicit
2022-03-06 23:49:30 +01:00
wmayer
58a719e207
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
Uwe
b4fff07d9e
[App] Expression and Extension: remove unused includes
2022-02-25 18:06:57 +01:00
mwganson
2aba33aba3
Mesh: fix test code so it will compile when used
2022-02-14 14:06:09 +01:00
wmayer
d29bd2f804
Mesh: [skip ci] add Mesh unit test for nearestFacetOnRay
2022-02-13 17:44:43 +01:00
wmayer
a6f0f69ed6
Mesh: overload MeshAlgorithm::NearestFacetOnRay to set a max. angle between facet and ray
2022-02-13 12:46:01 +01:00
luz paz
6953a7cea8
Fix some typos and whitespace
2022-02-12 19:33:28 +01:00
wmayer
853454a139
Mesh: modernize C++11
...
* remove redundant void-arg
* use nullptr
* replace deprecated headers
2022-01-26 18:05:02 +01:00
luz paz
e4aad767f4
Mesh: translate doxygen from DE to EN
...
For the purpose of making the source documentation uniform, source comments in this file were translated to English.
2022-01-13 17:27:43 +01:00
luzpaz
1c83d8fedd
Points: translate doxygen from DE to EN + fix superfluous whitespace ( #5287 )
...
* Points: translate doxygen from DE to EN + fix superfluous whitespace
For the purpose of making the source documentation uniform, source comments in this file were translated to english.
* Points: remove superfluous whitespace
* Fix left over DE to EN translations (from Cam and Mesh code)
2021-12-25 20:41:12 +01:00
luz paz
9c74c0afb1
Mesh: translate doxygen from DE to EN
...
For the purpose of making the source documentation uniform, source comments in this file were translated to english.
2021-12-22 01:09:52 +01:00
luz paz
0042f58e4c
Make source code comments use gender neutral pronouns
...
The changes also include some grammatical fixes as well.
2021-12-02 16:18:04 -05:00
luz paz
9a9267f922
Mesh: Convert comments from DE->EN
...
Bringing uniformity to documenting FreeCAD
2021-11-03 11:13:16 -04:00
wmayer
2808c4bc9c
Mesh: Mesh.createBox() now accepts a bounding box as argument
2021-10-23 18:58:43 +02:00
wmayer
e3ebe4bc9f
Mesh: add basic support of 3MF file format
2021-10-22 17:11:16 +02:00
wmayer
30ba396a82
Mesh: improve MeshGeomFacet::IntersectWithFacet
2021-10-20 19:42:39 +02:00
wmayer
cef86fb1ef
Mesh: extend API to access edges of a facet via Python
2021-10-20 13:01:11 +02:00
wmayer
5a55386919
Mesh: [skip ci] add unit tests for coplanar and intersecting triangles
2021-10-19 20:31:39 +02:00
wmayer
8d0d149b5b
Mesh: add method to get intersection of edges
2021-10-19 19:22:21 +02:00
wmayer
abf1cd1586
Mesh: [skip ci] update tri-tri-intersection
2021-10-19 15:14:36 +02:00
wmayer
837de28e9e
Mesh: expose trimByPlane to Python
2021-10-15 23:07:59 +02:00
wmayer
8c03581140
Mesh: [skip ci] add unit test for self-intersection
2021-10-13 17:29:18 +02:00
Noah
f1d1778a73
Mesh: fix WildMagic4 build on Darwin AArch64 (Apple M1)
...
A previous fix from 2012 excluded the x86_64 platfrom from using 32-bit Carbon APIs.
- https://tracker.freecadweb.org/view.php?id=656 (WildMagic4 doesn't build on 64-bit Mac OS)
Apply the same fix for AArch64 to ensure that the Mesh module can be built on Apple M1.
2021-10-06 22:47:48 +02:00