Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

STL exporter for BufferGeometry in THREE.js

I have a number of BufferGeometries, which consist a scene, and their meshes have been transferred to different positions. I was wondering if there is a way to export this scene, from meshes, containing BufferGeometries to STL file. Thank you very much.

like image 207
Hesamoy Avatar asked Apr 29 '16 17:04

Hesamoy


1 Answers

You can convert you BufferGeometries to Geometry like so:

var geometry = new THREE.Geometry().fromBufferGeometry( bufferGeometry );

then you can export to STL format.

like image 183
leota Avatar answered Oct 26 '22 04:10

leota