ObjFormatDetector
Overview
ObjFormatDetector identifies Wavefront OBJ (.obj) content by inspecting the opening bytes or file extension of an input stream. It is used internally by Scene.open() to select the correct importer automatically when no explicit format is specified by the caller. The detector examines Wavefront OBJ (.obj)-specific file signatures and returns the ObjFormat descriptor on a confirmed match, or yields to other detectors when the content does not conform to the expected Wavefront OBJ (.obj) structure.
Methods
| Signature | Description |
|---|---|
constructor() | Creates a new instance of the OBJ format detector |
detect(stream: any, fileName: string) → FileFormat | null | attempts to identify an OBJ file from a data stream and returns aFileFormatobject ornull` if detection fails |