Load and Save Options — Aspose.3D FOSS for Java
Overview
Load and save options are passed to Scene.open() (load) or Scene.save() (save) to control format-specific behaviour such as axis flipping, scale, coordinate conventions, and binary vs. ASCII output.
Package: com.aspose.threed
All option classes inherit from LoadOptions or SaveOptions.
Base Classes
| Class | Description |
|---|
LoadOptions | Abstract base for all format-specific load-option objects. Provides setFlipCoordinateSystem() and setScale(). |
SaveOptions | Abstract base for all format-specific save-option objects. Provides setFlipCoordinateSystem() and setAxisSystem(). |
OBJ Format
| Class | Description |
|---|
ObjLoadOptions | Load options for Wavefront OBJ. Key properties: setFlipCoordinateSystem(), setScale(), setEnableMaterials(), setNormalizeNormal(). |
ObjSaveOptions | Save options for Wavefront OBJ. Controls normals, UVs, material references, and point-cloud mode. |
STL Format
| Class | Description |
|---|
StlLoadOptions | Load options for STL. Supports setFlipCoordinateSystem(), setRecalculateNormal(), and setContentType(). |
StlSaveOptions | Save options for STL. Controls setFlipCoordinateSystem(), setAxisSystem(), and setContentType(). |
glTF Format
| Class | Description |
|---|
GltfLoadOptions | Load options for glTF 2.0 and GLB. Key properties: setFlipCoordinateSystem(), setPrettyPrint(). |
GltfSaveOptions | Save options for glTF 2.0 and GLB. Use setContentType(FileContentType.BINARY) to produce a self-contained .glb package. |
FBX Format
Quick Example
See Also