ObjFormat

Overview

ObjFormat is the built-in format handler for Wavefront OBJ (.obj) files in Aspose.3D for TypeScript. It inherits from FileFormat and exposes factory methods that create the detector, importer, and exporter for this format. When a Scene loads or saves a .obj file, it delegates all I/O work to this class internally. The class also provides access to default ObjFormatLoadOptions and ObjFormatSaveOptions instances that control parsing and serialisation behaviour for every read and write operation.

Properties

NameTypeAccessDescription
extensionstringReadReturns the primary file extension for OBJ format (e.g., “.obj”)
extensionsstring[]ReadReturns an array of supported file extensions for OBJ format
contentTypestringReadReturns the MIME type associated with OBJ files
fileFormatTypeanyReadReturns the enumeration value identifying the OBJ file format
versionstringReadReturns the version string of the OBJ format implementation
canExportbooleanReadIndicates whether OBJ format supports exporting
canImportbooleanReadIndicates whether OBJ format supports importing
formatsany[]ReadReturns a collection of format descriptors related to OBJ handling

Methods

SignatureDescription
constructor()
getInstance()ObjFormatReturns a singleton ObjFormat instance
createLoadOptions()ObjLoadOptionsCreates a default ObjLoadOptions object for importing OBJ files
createSaveOptions()ObjSaveOptionsCreates a default ObjSaveOptions object for exporting OBJ files

See Also