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

Can we add unit info to the STL file? #128

Open thomthom opened 10 years ago

thomthom commented 10 years ago

Just thinking, could we add unit info the the STL file? In binary format you have the 80 byte empty buffer, maybe we can add some info there so when we import within SketchUp we could pick the unit it was exported in.

Of course other applications wouldn't be using it, but at least within the SketchUp eco-system.

Not sure what one would do with ASCII format though...

Just thinking out loud.

jimfoltz commented 10 years ago

The binary format has an 80 character header, part of which could be used for unit info.

The ASCII format would have to put the unit code in the first line, which is meant tobe the name of the solid.