bubnikv
2085a482c7
admesh: Fixed a problem in loading an STL when compiled with
...
Visual Studio 2013. Added multiple compile time checks for data
sizes and alignment. The library STL import is not big endian safe, so
added a test for endianity, modified STL export to a faster little endian only.
2016-11-17 16:57:58 +01:00
bubnikv
4c407c8a59
Optimization of Model bounding box routines (avoids copying the mesh),
...
optimization of the admesh rotate function (also made numerically more robust).
2016-11-16 11:53:29 +01:00
bubnikv
52de3940fe
Improvements of admesh robustness when loading and fixing STLs.
...
https://github.com/prusa3d/Slic3r/issues/33
2016-11-16 10:33:23 +01:00
bubnikv
d1d6e907c5
Positive and negative zeros are possible in the floats, which are considered equal by the FP unit.
...
When using a memcmp on raw floats, those numbers report to be different.
Unify all +0 and -0 to +0 to make the floats equal under memcmp.
2016-11-16 09:31:18 +01:00
bubnikv
e6d802a5ff
Fixed a 64bit compatiblity in admesh, fixed a typo in TriangleMesh::swap()
2016-11-15 17:22:00 +01:00
wenjie
3acb0514e1
fix a segment fault by admesh
2016-03-12 16:01:16 +08:00
ntfshard
d62f33b0b4
Removed unused variables
2015-11-04 20:49:20 +01:00
Alessandro Ranellucci
4a39665804
Bugfix: binary ASCII files were not written with the correct fopen() mode. #2928
2015-06-20 14:16:23 +02:00
Alessandro Ranellucci
be635c69e7
Fixed regression casusing some rare STL files not to parsed correctly because of lack of the solid name. #2914
2015-06-15 17:17:36 +02:00
Alessandro Ranellucci
911bed827c
Fixed regression in STL parser. #2886
2015-06-09 14:54:52 +02:00
Alessandro Ranellucci
6095427926
Fix admesh's STL parser in order to make it more tolerant for broken STL files having multiple 'solid' definitions. Still not the ideal STL parser, but handles the cases that were reported so far. #2471 #2842
2015-06-01 19:49:52 +02:00
Joseph Lenox
102785d154
Fix a warning about unused return value when using freopen in admesh. Added another NULL check for safety.
2015-02-05 00:58:27 -06:00
Alessandro Ranellucci
504cbd89db
Fix bug in admesh code that causes random binary STL files not to be read correctly on Windows. #2461
2015-01-04 11:46:58 +01:00
Miro Hrončok
b9f4880b23
Updated to admesh 0.98.1
2014-09-23 14:34:37 +02:00
Alessandro Ranellucci
e9910a2c0b
XYZ mirroring from plater
2014-06-14 21:14:33 +02:00
Alessandro Ranellucci
334bc4c581
Fix cut() test
2014-04-25 13:27:45 +02:00
Alessandro Ranellucci
d02b64b31b
Bugfix: binary STL export produced corrupt results on Windows. #1814
2014-03-23 19:17:56 +01:00
Alessandro Ranellucci
86f91bb3c4
New TriangleMeshSlicer::cut() method
2014-01-16 11:25:26 +01:00
Alessandro Ranellucci
44e7e542c2
Bugfix: overflow causing full object facets reversal when STL file has large coordinates. #1666
2014-01-02 18:52:27 +01:00
Miro Hrončok
aad41ee023
Rename some admesh functions to preserve compatibility with oiriginal admesh #1525
2014-01-02 15:10:03 +01:00
Alessandro Ranellucci
bed1625d6b
Split objects could not be repositioned in plater. 3D preview and stats were not available too. #1543
2013-11-24 14:28:17 +01:00
Alessandro Ranellucci
e62ef35fbf
Bugfix: some binary STL files were not correctly parsed on Windows. #1370 1467
2013-11-12 16:58:26 +01:00
Alessandro Ranellucci
3464e646f7
Use fread() to read facet number
2013-11-12 15:27:42 +01:00
Alessandro Ranellucci
d0d842e24a
Use fread() to read binary STL files
2013-11-12 15:23:48 +01:00
Alessandro Ranellucci
d660a1de0a
Fix XS STL reader not populating stats.size correctly
2013-09-12 10:29:42 +02:00
Alessandro Ranellucci
11e18f681d
Incomplete work to store TriangleMesh objects in Model objects instead of extracting vertices and facets
2013-09-11 09:49:28 +02:00
Alessandro Ranellucci
9b12d6037a
Ported TriangleMesh::scale_xyz()
2013-09-09 23:38:49 +02:00
Alessandro Ranellucci
3919ba83d8
Implemented TriangleMesh->merge
2013-09-09 22:45:22 +02:00
Alessandro Ranellucci
b38cc2c244
Merge branch 'master' into xsdata
...
Conflicts:
lib/Slic3r.pm
lib/Slic3r/ExPolygon.pm
lib/Slic3r/Fill.pm
lib/Slic3r/Fill/Rectilinear.pm
lib/Slic3r/GCode.pm
lib/Slic3r/GUI/Plater.pm
lib/Slic3r/Geometry/Clipper.pm
lib/Slic3r/Layer/Region.pm
lib/Slic3r/Print.pm
lib/Slic3r/Print/Object.pm
lib/Slic3r/TriangleMesh.pm
t/shells.t
xs/MANIFEST
2013-08-08 02:10:34 +02:00
Alessandro Ranellucci
9402898c58
Ported TriangleMesh->size
2013-08-05 19:39:10 +02:00
Alessandro Ranellucci
597e9e6c14
Finish porting TriangleMesh->translate
2013-08-05 19:17:13 +02:00
Alessandro Ranellucci
04d5d1bb9b
Incomplete work for porting translate()
2013-08-05 10:48:38 +02:00
Alessandro Ranellucci
515d5707c9
Ported TriangleMesh->scale
2013-08-04 21:34:26 +02:00
Alessandro Ranellucci
1479d6933b
Prevent admesh to reverse all facets twice in some mostly-random situations. Normalizing a null normal should still return a null normal in order to fix it properly later instead of treating it as if it was a true normal and thus reversing the facet (and if that is the first facet, all of the others would be reversed as well). #1362
2013-07-31 00:32:48 +02:00
Alessandro Ranellucci
dd935e2036
Some comments and minor fixes to admesh code by Andy Doucette
2013-07-31 00:01:53 +02:00
Alessandro Ranellucci
b42333feed
Don't exit when admesh fails to repair a mesh, but continue
2013-07-06 22:17:19 +02:00
Alessandro Ranellucci
6373322b84
New ReadFromPerl() method
2013-07-03 11:38:01 +02:00
Alessandro Ranellucci
2a2633da0a
New automatic built-in STL repair
2013-06-23 21:11:46 +02:00
Alessandro Ranellucci
77440b774d
Include admesh code for STL repair
2013-06-23 18:18:38 +02:00