ObjExporter
Overview
ObjExporter converts an in-memory Scene graph into Wavefront OBJ (.obj) format and writes the result to a file path or output stream. It is invoked automatically by Scene.save() when the target file extension is .obj or when a ObjSaveOptions instance is passed explicitly to control output. Pass a ObjSaveOptions object to govern serialisation details such as coordinate-system handedness, vertex precision, and optional format-specific extensions during the export operation.
Description
ObjExporter is a class in the Aspose.3D FOSS library for TypeScript that exposes 2 methods and 0 properties for programmatic use. It extends Exporter, inheriting shared functionality from its parent type.
Core capabilities include: Creates a new objexporter instance with default settings; exports the scene to a stream using the specified save options. These operations enable developers to integrate objexporter 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 ObjExporter instance with default settings |
supportsFormat(fileFormat: FileFormat) → boolean | Returns true if this exporter can handle the given file format |
export(scene: Scene, stream: any, options: SaveOptions) | Exports the scene to a stream using the specified save options |