Skip to content

Instantly share code, notes, and snippets.

@jcarletto27
jcarletto27 / OBJExporter.js
Last active September 25, 2023 16:34
Three.js OBJExporter, updated to work with bufferGeometry. Adds support for bones and morph data.
THREE.OBJExporter = function () {};
THREE.OBJExporter.prototype = {
constructor: THREE.OBJExporter,
parse: function (object) {
var output = '';
@jcarletto27
jcarletto27 / STLExporter.js
Last active September 23, 2020 13:09
updated Three.js STLExporter to export model including morphTargets
/**
* Based on https://github.com/mrdoob/three.js/blob/a72347515fa34e892f7a9bfa66a34fdc0df55954/examples/js/exporters/STLExporter.js
* Tested on r68 and r70
* @author jcarletto / https://github.com/jcarletto27
* @author kjlubick / https://github.com/kjlubick
* @author kovacsv / http://kovacsv.hu/
* @author mrdoob / http://mrdoob.com/
*/
THREE.STLExporter = function () {};