SketchUp / sketchup-stl

A SketchUp Ruby Extension that adds STL (STereoLithography) file format import and export.
http://extensions.sketchup.com/content/sketchup-stl
MIT License
248 stars 68 forks source link

Improve binary stl file detection. #99

Closed jimfoltz closed 11 years ago

jimfoltz commented 11 years ago

Can not rely on information in the stl header to determine the file type.

Although the STL format specification says a binary .stl should never begin with the word solid, I am seeing binary .stl files from Thingiverse.com which do begin with solid.

This is a more robust determination of the .stl file type.

thomthom commented 11 years ago

I'd like to try to contact then and hear their reason for producing files like this.

jimfoltz commented 11 years ago

I don't think it's Thingiverse - probably just the software some of their members are using.

tbuser commented 11 years ago

That is correct, Thingiverse doesn't produce the bad STL files, users upload bad ones using whatever modeling software they use.

thomthom commented 11 years ago

Thanks for the feedback! :+1: