Load and Save Options — Aspose.3D FOSS for .NET
Namespace: Aspose.ThreeD.Formats
Each supported format has a dedicated pair of load and save option classes that let you control import and export behavior.
ObjLoadOptions
Load options for Wavefront OBJ files.
var opts = new ObjLoadOptions();
scene.Open("model.obj", opts);ObjSaveOptions
Save options for Wavefront OBJ output.
var opts = new ObjSaveOptions();
scene.Save("output.obj", opts);StlLoadOptions
Load options for STL files (binary and ASCII).
var opts = new StlLoadOptions();
scene.Open("part.stl", opts);StlSaveOptions
Save options for STL output.
var opts = new StlSaveOptions();
scene.Save("output.stl", opts);GltfLoadOptions
Load options for glTF 2.0 and GLB files.
var opts = new GltfLoadOptions();
scene.Open("model.gltf", opts);GltfSaveOptions
Save options for glTF 2.0 and GLB output. In the current FOSS edition, GltfSaveOptions does not define format-specific properties. Use the file extension to control the output format: .gltf for JSON-based glTF, .glb for binary GLB.
scene.Save("output.gltf"); // JSON glTF
scene.Save("output.glb"); // binary GLBFbxLoadOptions
Load options for FBX files.
var opts = new FbxLoadOptions();
scene.Open("model.fbx", opts);FbxSaveOptions
Save options for FBX output.
| Property | Type | Description |
|---|---|---|
IsAscii | bool | true for ASCII FBX, false for binary |
var opts = new FbxSaveOptions() { IsAscii = true };
scene.Save("output.fbx", opts);TmfLoadOptions
Load options for 3MF files.
var opts = new TmfLoadOptions();
scene.Open("model.3mf", opts);TmfSaveOptions
Save options for 3MF output.
var opts = new TmfSaveOptions();
scene.Save("output.3mf", opts);