Commit Graph

76 Commits

Author SHA1 Message Date
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
wmayer
6f5c2179d0 Mesh: [skip ci] improve color support for X3D and X3DOM output 2020-08-29 14:23:38 +02:00
wmayer
4da114a8c7 Mesh: [skip ci] support of WebGL/X3D export 2020-08-28 18:06:55 +02:00
wmayer
7ae2d7e495 Mesh: [skip ci] support of asymptote export 2020-08-27 09:51:35 +02:00
wmayer
50e5495ce3 PVS: V1023 A pointer without owner is added to the container by the 'emplace_back' method. A memory leak will occur in case of an exception. 2020-07-18 10:59:28 +02:00
wmayer
7a2e16ac9b Mesh: [skip ci] allow to pass target number to Python function Mesh.decimate() 2020-05-03 15:25:48 +02:00
wmayer
a031816de2 Mesh: change MeshSegmentAlgorithm::FindSegments to accept shared instead of raw pointers 2020-03-03 21:27:31 +01:00
wmayer
90addbe9c8 Mesh: [skip-ci] add method to get curvature info directly from mesh object 2020-01-30 17:22:31 +01:00
asapelkin
ced8100ab9 use emplace_back instead of push_back where justified 2019-11-21 14:48:09 +01:00
Zheng, Lei
8426ebe2ba Fix various Py::Object leak 2019-10-08 17:53:20 +02:00
wmayer
b14cf8a00d extend convertTo function to also support SbRotation/Base::Rotation 2019-09-06 21:29:51 +02:00
wmayer
efc74ecbc8 also copy placement when copying a mesh 2019-05-13 15:51:43 +02:00
wmayer
4082b42f6b improve mesh repair functions 2019-04-12 21:31:46 +02:00
wmayer
ac92e1e98d extend mesh repair functions 2019-03-13 01:39:27 +01:00
wmayer
1471bb49d2 mesh segmentation algorithm for surfaces 2018-12-08 15:53:58 +01:00
wmayer
f626549928 add verifier class to check the result of the polygon triangulation 2018-09-18 21:38:04 +02:00
wmayer
170708a4f1 Mesh improvements:
+ support of Simple Model Format (smf)
+ improve reading of STL files (reduce by ~70%)
2018-07-26 13:19:35 +02:00
wmayer
0c394ff352 extend API of smooth command to allow to run different algorithms 2018-04-14 18:44:03 +02:00
wmayer
3998eb964e add kd tree class
add mesh decimation algorithm
2017-11-14 14:17:19 +01:00
wmayer
0a6a9c90bd changes in Mesh module:
+ cppcheck: fix some minor issues found by code analyzer
+ export to IDTF
+ fix for throwing exception
+ optimize mesh rendering
2017-11-08 17:56:13 +01:00
wmayer
907095293c support of keywords in Mesh.read and Mesh.write 2017-09-19 10:31:07 +02:00
wmayer
1a2d40f968 add boolean parameter to MeshKernel::AddFacets to disable check for manifold edges of new faces 2017-03-02 22:33:38 +01:00
looooo
f1fcefb228 py3: Mesh: fix py3 Long/Int problem with python2 2017-02-24 14:20:50 +01:00
looooo
ab0adc1887 py3: gathering diff from Mod/Mesh
98a8275938388992ef1b7bb76dcd43438f61bf7e  py3: make most of the unit test to succeed
2017-02-24 14:20:50 +01:00
Yorik van Havre
707d6a0a4d py3: ported Mesh to python3 2017-02-24 14:20:50 +01:00
wmayer
2d8e70085e rename 2d tool classes to be consistent with 3d classes 2016-11-21 14:29:51 +01:00
wmayer
51bcfdd6ba fix unicode problem when reading or writing mesh object 2016-10-01 20:41:00 +02:00
wmayer
f6e1cb6025 fix -Wextra in Mesh 2016-09-23 17:24:00 +02:00
wmayer
2af6bb6e49 replace deprecated auto_ptr with unique_ptr 2016-09-22 13:01:20 +02:00
wmayer
af4ef2fa7f Coverity issues:
129202: replace dynamic_cast with static_cast
129421, 129422: fix Py_Return macro
128928: Unchecked return value
129488, 129490: uninitialized scalar variable
129567, 129661: uninitialized scalar field
129665: uninitialized pointer field
2016-08-15 21:28:41 +02:00
wmayer
691c2ddc21 add method to get self-intersections of a mesh via Python 2016-08-08 16:40:59 +02:00
wmayer
dea5a1b6ee expose mesh analyzing functions to Python 2016-07-31 12:13:37 +02:00
wmayer
b2facd7113 + allow to customize algorithms in mesh evalutation panel 2016-07-30 19:51:16 +02:00
wmayer
ec82ea252a + add overloaded methods of write() and read() to write and read from streams 2016-06-11 14:47:01 +02:00