Overview
The FileFormat class acts as a registry of all supported 3D file formats. It provides static constants for each format and utility methods for format detection and option creation.
Format Constants
| Constant | Format | Extension |
|---|
FileFormat.WavefrontOBJ | Wavefront OBJ | .obj |
FileFormat.STL | STL (binary/ASCII) | .stl |
FileFormat.GLTF2 | glTF 2.0 | .gltf |
FileFormat.FBX7400ASCII | FBX 7.4 ASCII | .fbx |
FileFormat.Collada | Collada | .dae |
Methods
| Method | Return Type | Description |
|---|
Detect(string filePath) | FileFormat | Detects the format from a file path |
GetFormatByExtension(string ext) | FileFormat | Returns the format matching the extension |
CreateLoadOptions() | LoadOptions | Creates default load options for this format |
CreateSaveOptions() | SaveOptions | Creates default save options for this format |
Example
See Also