ObjImporter

Overview

ObjImporter reads a Wavefront OBJ (.obj) 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 .obj extension or when a ObjLoadOptions instance is provided explicitly. Pass ObjLoadOptions to control which node hierarchies are loaded, how materials are resolved, and whether animation tracks are included during import.

Description

ObjImporter 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: Loads obj data from a stream into the provided scene using the supplied loadoptions. These operations enable developers to integrate objimporter functionality directly into TypeScript applications.

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

Methods

SignatureDescription
constructor()
supportsFormat(fileFormat: FileFormat)boolean
importScene(scene: Scene, stream: any, options: LoadOptions)Loads OBJ data from a stream into the provided Scene using the supplied LoadOptions

See Also