StlImporter

Overview

StlImporter reads a STL (.stl) file or binary buffer and reconstructs its scene graph as Aspose.3D for TypeScript objects including nodes, meshes, materials, and animations. It is invoked automatically by Scene.open() when the source file has the .stl extension or when a StlLoadOptions instance is provided explicitly. Pass StlLoadOptions to control which node hierarchies are loaded, how materials are resolved, and whether animation tracks are included during import.

Methods

SignatureDescription
constructor()Creates a new STL importer used to load STL files
supportsFormat(fileFormat: FileFormat)booleanReturns true when the given FileFormat is STL, otherwise false
importScene(scene: Scene, stream: Buffer | Uint8Array, options: LoadOptions)Reads STL data from a Buffer or Uint8Array into a Scene using LoadOptions

See Also