Class STLExport
Methods
StaticCreate STL
-
CreateSTL(
meshes: any[],
download?: boolean,
fileName?: string,
binary?: boolean,
isLittleEndian?: boolean,
doNotBakeTransform?: boolean,
supportInstancedMeshes?: boolean,
exportIndividualMeshes?: boolean,
): anyExports the geometry of a Mesh array in .STL file format (ASCII)
Parameters
- meshes: any[]
list defines the mesh to serialize
- download: boolean = true
triggers the automatic download of the file.
- fileName: string = "stlmesh"
changes the downloads fileName.
- binary: boolean = false
changes the STL to a binary type.
- isLittleEndian: boolean = true
toggle for binary type exporter.
- doNotBakeTransform: boolean = false
toggle if meshes transforms should be baked or not.
- supportInstancedMeshes: boolean = false
toggle to export instanced Meshes. Enabling support for instanced meshes will override doNoBakeTransform as true
- exportIndividualMeshes: boolean = false
toggle to export each mesh as an independent mesh. By default, all the meshes are combined into one mesh. This property has no effect when exporting in binary format
Returns any
the STL as UTF8 string
- meshes: any[]
Class for generating STL data from a Babylon scene.