Pure Javascript code for parsing and rendering STL (ascii and binary) files
JavaScript
Latest commit 73f2985 Apr 10, 2013 @tonylukasavage me
Permalink
Failed to load latest commit information.
Octocat-v1.stl initial import Apr 10, 2013
Octocat-v2.stl initial import Apr 10, 2013
README.md me Apr 10, 2013
detector.js initial import Apr 10, 2013
index.html initial import Apr 10, 2013
stats.js initial import Apr 10, 2013
three.js initial import Apr 10, 2013

README.md

jsstl

Pure Javascript demo code for parsing and rendering STL (ascii and binary) files.

The code is currently tightly coupled between the STL parsing and three.js geometry creation for the sake of initial rendering speed. That said, it would be relatively trivial to make the parseStl() and parseStlBinary() functions be renderer-agnostic. Feel free to cannibalize the code as you see fit.

try it out

Dump this repo on a web server and open up index.html in a browser. Voila, octocat!

thanks to

license

Do whatever you want with this code. I offer it without expectation or warranty. No need to credit me in your project or source code. A digital high five would be nice, but is not required.

me

@tonylukasavage