Skip to content

Instantly share code, notes, and snippets.

@paulkaplan
paulkaplan / STLFileSaver.js
Last active Sep 14, 2020
Create an ASCII STL file from a THREE.js mesh that can be saved save from browser and 3D printed
View STLFileSaver.js
/*
Paul Kaplan, @ifitdidntwork
Create an ASCII STL file from a THREE.js mesh
that can be saved save from browser and 3D printed
--------------------------------------------------
See further explanation here:
http://buildaweso.me/project/2013/2/25/converting-threejs-objects-to-stl-files
--------------------------------------------------
Saving the file out of the browser is done using FileSaver.js