Closed aligator closed 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
Should be fixed now by using the fixed version of the stl lib.
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: