STLExporter Class
A STL scene exporter.
Item Index
Methods
- Export static
- getMenuItem static
Methods
Export
-
meshes
-
options
-
completeCallback
Exports a scene into the STL file format (http://en.wikipedia.org/wiki/STL_(file_format)). Notice that this format contains informations about vertex and normals. Nothing else is exported.
Parameters:
-
meshes
BABYLON.Mesh | ArrayAn array of meshes or a single mesh.
-
options
ObjectAn object with options: - leftHand {Number} Set to 0 for
Left hand
system or 1 forRight hand
sysytem. - filename {String} The desired file name - precision {Number} The precision of vertex data (default is 100). - scaleFactor {Number} The desired scale factor - compressOutput {Boolean} Set totrue
to compress the output into a zip file. -
completeCallback
FunctionA function called when the process is done.
getMenuItem
-
options
Gets options displayed in the menu.
Parameters:
-
options
ObjectA dictionary with default options for this exporter - filename {String} - scaling {Number} - precision {Number} - leftHand {Boolean} - exportAllTextures {Boolean} - compressOutput {Boolean}
Returns:
Returns an object ready to add to the menu.