STLExporter
Summary
A STL scene exporter.
Item Index
Methods
- Export static
- getMenuItem static
Methods
Export
Syntax
Export
-
meshes -
options -
completeCallback
Summary
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:
-
meshesBABYLON.Mesh | ArrayAn array of meshes or a single mesh.
-
optionsObjectAn object with options: - leftHand {Number} Set to 0 for
Left handsystem or 1 forRight handsysytem. - 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 totrueto compress the output into a zip file. -
completeCallbackFunctionA function called when the process is done.
getMenuItem
Syntax
Summary
Gets options displayed in the menu.
Parameters:
-
optionsObjectA 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.