aligator / GoSlice

This is an experimental slicer for 3d printing written in Go also usable as modular slicing lib.
Apache License 2.0
100 stars 16 forks source link

loading some stl files fails #3

Closed aligator closed 4 years ago

aligator commented 4 years ago

Loading some stl files fails: error while processing file: 2: "facet" or "endsolid" expected 56621: "endsolid" expected

Steps to reproduce: Download the 3DBenchy.stl from here https://www.thingiverse.com/thing:763622/files and try to slice it.

Workaround Import the file in PrusaSlicer and export it as stl. Then the file will work.

Solution This is because of an error in the github.com/hschendel/stl lib I use. This lib may be replaced later by a own implementation for loading stls but for now its the simplest option. So let's fix the lib:

aligator commented 4 years ago

seems to be a problem with binary files containing "solid " at the beginning. This should not be the case but there are files which don't follow this rule... https://stackoverflow.com/questions/7377954/how-to-detect-that-this-is-a-valid-valid-binary-stlstereolithography-file/7394842#7394842

aligator commented 4 years ago

Should be fixed now by using the fixed version of the stl lib.