Options
All
  • Public
  • Public/Protected
  • All
Menu

Class for generating STL data from a Babylon scene.

Hierarchy

  • STLExport

Index

Constructors

Methods

Constructors

Methods

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

    Parameters

    • meshes: (Mesh | InstancedMesh)[]

      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.

    • Optional doNotBakeTransform: boolean

      toggle if meshes transforms should be baked or not.

    • Optional supportInstancedMeshes: boolean

      toggle to export instanced Meshes. Enabling support for instanced meshes will override doNoBakeTransform as true

    Returns any

    the STL as UTF8 string

Legend

  • Constructor
  • Property
  • Method
  • Inherited constructor
  • Inherited property
  • Inherited method
  • Property
  • Method
  • Static method

Settings

Theme