FbxImporter
Overview
FbxImporter reads a FBX (.fbx) 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 .fbx extension or when a FbxLoadOptions instance is provided explicitly. Pass FbxLoadOptions to control which node hierarchies are loaded, how materials are resolved, and whether animation tracks are included during import.
Description
FbxImporter is a class in the Aspose.3D FOSS library for TypeScript that exposes 4 methods and 0 properties for programmatic use. It extends Importer, inheriting shared functionality from its parent type.
Core capabilities include: Creates a new instance of the fbx importer; imports fbx data from a stream into an existing scene with given options. These operations enable developers to integrate fbximporter functionality directly into TypeScript applications.
Instances are created through a single constructor that initializes the object with default values.
Methods
| Signature | Description |
|---|---|
constructor() | Creates a new instance of the FBX importer |
supportsFormat(fileFormat: FileFormat) → boolean | |
open(filename: string, options: LoadOptions) → Scene | Loads a scene from a file using the specified LoadOptions |
openFromStream(stream: any, options: LoadOptions) → Scene | Loads a scene from a data stream using the specified LoadOptions |
importScene(scene: Scene, stream: any, _options: LoadOptions) | Imports FBX data from a stream into an existing Scene with given options |