Commit Graph

356 Commits

Author SHA1 Message Date
Ian Rees
76e4605364 Throw Python exception if format is unknown. 2017-03-02 17:41:14 +01:00
Ian Rees
371c3f7278 Tidy up. 2017-03-02 17:41:14 +01:00
Ian Rees
4fd7334f95 Export Part and Group objects. 2017-03-02 17:41:14 +01:00
Ian Rees
dd75896b07 Clean up docstrings to conform to PEP 8, tidy up. 2017-03-02 17:41:14 +01:00
Ian Rees
2673b8726c Add setting to export compressed/uncompressed AMFs 2017-03-02 17:41:14 +01:00
Ian Rees
88f74db845 Added some metadata to exported AMF 2017-03-02 17:41:14 +01:00
Ian Rees
8418f2d41a Added AMF compression. Works with Cura, not Slic3r 2017-03-02 17:41:14 +01:00
Ian Rees
8935db69f4 Renamed AmfExport.(h|cpp) to Exporter.(h|cpp) 2017-03-02 17:41:14 +01:00
Ian Rees
54d5e0e3f9 Refactoring mesh export code 2017-03-02 17:41:14 +01:00
Ian Rees
3a18d76fbd Basic AMF writing support
TODO:
  * Compression
  * Understand translations, constellations
  * Curved surfaces
  * Material parameters
  * Metadata, etc
2017-03-02 17:41:14 +01:00
Ian Rees
ae9be458b0 Add AMF to understood extensions/formats. 2017-03-02 17:41:14 +01:00
Kunda
0192f2bf20 source typo fixes pt2 (only on py3 merged code) 2017-02-28 17:01:11 +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
e3477eee1b improve whitespaces 2017-02-18 09:44:58 +01:00
Mateusz Skowroński
f8778c4d6f Fix more GCC warnings. 2017-02-18 09:35:31 +01:00
Jean-Samuel Reynaud
bb927ff3e8 Adding Normals in OBJ exports 2017-02-10 18:51:10 +01:00
wmayer
7ba2217617 py3: ported module init to python3 2017-02-04 15:56:31 +01:00
wmayer
5acdaed2e3 fix various clang warnings 2016-12-18 16:08:30 +01:00
wmayer
743b83e853 Add switch to select between Qt4 and Qt5 2016-12-13 15:53:13 +01:00
wmayer
6cfaf916f8 remove superfluous Qt includes 2016-12-13 15:40:49 +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
7747430cfd do not check for solid when computing volume of mesh 2016-10-01 20:40:26 +02:00
wmayer
a68b03a083 fix some typos 2016-09-27 19:26:45 +02:00
wmayer
1139d9adbb fix -Wextra in Inspection 2016-09-23 18:10:27 +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
0a71c00b22 for obj export only create mtl file if color is per face 2016-09-21 10:05:40 +02:00
wmayer
013e2f30e5 take care of segments in mesh on export 2016-09-08 13:32:30 +02:00
wmayer
2c226343cb improve obj export of mesh with colors 2016-09-06 17:00:34 +02:00
wmayer
48acb246cf improve obj support 2016-09-01 18:07:18 +02:00
wmayer
7c6964a7af fix memory leak 2016-08-24 19:09:12 +02:00
wmayer
cc97241969 Coverity issues: fix Mesh, Points and Inspection module 2016-08-17 14:08:47 +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
eb4235da65 add plausibility for self-intersectin check to filter out false-positives 2016-08-08 16:40:11 +02:00
wmayer
ad10d2104f add parameters to IsDeformed method 2016-07-31 19:08:42 +02:00
wmayer
489d3e7c92 fix rounding issue in IsDegenerated() method 2016-07-31 17:37:23 +02:00
wmayer
434c149c96 fix rounding issue in IsDegenerated() method 2016-07-31 13:48:09 +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
1019bace65 + implement modifier class to allow limited access to internals of mesh kernel class 2016-07-30 15:31:45 +02:00
wmayer
c294c8bdbd + rename methods in Vector3 class
+ add convenience methods Cross and Dot to Vector3 class
+ fix bug in DistanceToLineSegment in Vector3 class
2016-07-30 15:14:47 +02:00
wmayer
217d4897fe support groups for export to obj format 2016-07-24 16:16:42 +02:00
wmayer
3f83814682 improve groups handling of obj mesh format 2016-07-24 00:23:45 +02:00
wmayer
f5d4cb09c8 compute minimum volume oriented box 2016-07-02 18:10:23 +02:00
wmayer
8c670f81b1 + add WildMagic algorithm to compute minimum volume oriented box 2016-07-02 17:01:56 +02:00
wmayer
ec5d1150ca + avoid memory exception when stl file is empty 2016-06-11 16:25:41 +02:00