Enrico Turri
1489b9901b
Added workaround into admesh stl_fix_normal_directions() function to prevent meshes to be broken by the repairing process ( fixes #716 , #574 , #413 , #269 , #262 , #259 , #230 , #228 , #206 )
2018-02-15 16:10:47 +01:00
bubnikv
47d904a628
Changed the Slic3r coordinate type from long to int32 to match
...
the point type on Windows / Linux / OSX
to achieve the same behavior on all the 32 / 64bit systems.
(Windows always treats the long as 32bit int, while Linux treats
long as a 64bit int).
2018-02-12 18:16:10 +01:00
bubnikv
9898024ce9
admesh: changed header_num_facets to uint32
2017-10-03 12:41:53 +02:00
bubnikv
a52a04550e
Big endian fix, thanks to @hyperair for hints and initial implementation.
2017-10-03 10:57:16 +02:00
bubnikv
2a3d2fb8c1
CMake: Split the globs into separate libraries.
2017-08-18 11:39:24 +02:00
bubnikv
1385018724
Unicode handling:
...
Removed the Perl dependencies on Encode, Encode::Locale and Unicode::Normalize.
Added dependency on boost::locale.
Added encode_path, decode_path, normalize_utf8 functions to Slic3r.xs
Slic3r.xs has been made mostly utf8 safe by using the boost::nowide library,
thanks to @alexrj for the idea.
Simplified the encode_path / decode_path stuff:
wxWidgets are unicode already, so there is no need to decode_path() from it.
Perl / win32 interfacing is non-unicode, so decode_path() is executed
on ARGV just at the beginning of the perl scripts.
2017-08-03 17:31:31 +02:00
bubnikv
69c0f55679
Fixes loading of multi-part ASCII STLs.
...
https://github.com/prusa3d/Slic3r/issues/255
2017-04-18 10:53:31 +02:00
bubnikv
b60ae4745f
Fixed missing #include<assert.h>
2017-03-29 19:57:11 +02:00
bubnikv
1fb3d00932
Fix of parsing ASCII STLs on Visual Studio 2013 with global optimization.
2017-03-22 17:57:27 +01:00
bubnikv
930e6752d9
Reverted unification of positive and negative zeros when loaded
...
from an STL file.
2017-03-03 12:54:00 +01:00
bubnikv
efb02f71f0
AdMesh:
...
unify positive and negative zeros in stl_check_facets_exact() and stl_check_facets_nearby()
New function stl_transform() by a 3x4 matrix.
Some constness improvements.
2017-02-26 21:59:09 +01:00
Alessandro Ranellucci
a26330a292
Try to fix compilation problem with Boost 1.54. #3595
2016-12-08 14:56:13 +01:00
bubnikv
3e8cafa857
Fix of ASCII STL parser. Accept a model even with invalid normals.
2016-12-05 11:39:17 +01:00
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