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.

Description

StlImporter is a class in the Aspose.3D FOSS library for TypeScript that exposes 2 methods and 0 properties for programmatic use. It extends Importer, inheriting shared functionality from its parent type.

Core capabilities include: Creates a new stl importer used to load stl files; reads stl data from a buffer or uint8array into a scene using loadoptions. These operations enable developers to integrate stlimporter functionality directly into TypeScript applications.

Instances are created through a single constructor that initializes the object with default values.

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