I would like to create an export as OBJ or STL link for a parametric Three.js mesh object. Just like the export option on http://www.3dtin.com
Any advice would be appreciated.
I would like to create an export as OBJ or STL link for a parametric Three.js mesh object. Just like the export option on http://www.3dtin.com
Any advice would be appreciated.
To get mesh in .obj format I use this simple function:
Writing a
OBJExporter
should be pretty easy. Just use as reference the OBJLoader. In some weeks I'll probably write it myself if noone has done it by then.I would first look into the python OBJ -> three.js converter.
Barring that, I don't think you're going to find any libraries pre-built to do this. I would actually ask 3DTin if they used a library or if they developed it in-house.
I tweaked the above code slightly to allow for arrays of objects that have been duplicated and translated around in a scene. I'm presently using document.writeln then manually copying and pasting into a document.
}