STLExport

Class for generating STL data from a Babylon scene.

Hierarchy

  • STLExport

Index

Methods

Methods

Static CreateSTL

Find examples in Playground
  • CreateSTL(meshes: Mesh[], download?: boolean, fileName?: string, binary?: boolean, isLittleEndian?: boolean): any
  • Exports the geometry of a Mesh array in .STL file format (ASCII)

    Parameters

    • meshes: Mesh[]

      list defines the mesh to serialize

    • Optional download: boolean

      triggers the automatic download of the file.

    • Optional fileName: string

      changes the downloads fileName.

    • Optional binary: boolean

      changes the STL to a binary type.

    • Optional isLittleEndian: boolean

      toggle for binary type exporter.

    Returns any

    the STL as UTF8 string

Generated using TypeDoc