API Docs for: 2.7.3
Show:

STLExporter Class

Module: Wanaplan

A STL scene exporter.

Item Index

Methods

Methods

Export

(
  • meshes
  • options
  • completeCallback
)
static

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 | Array

    An array of meshes or a single mesh.

  • options Object

    An object with options: - leftHand {Number} Set to 0 for Left hand system or 1 for Right 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 to true to compress the output into a zip file.

  • completeCallback Function

    A function called when the process is done.

getMenuItem

(
  • options
)
Object static

Gets options displayed in the menu.

Parameters:

  • options Object

    A dictionary with default options for this exporter - filename {String} - scaling {Number} - precision {Number} - leftHand {Boolean} - exportAllTextures {Boolean} - compressOutput {Boolean}

Returns:

Object:

Returns an object ready to add to the menu.