Load and Save Options — Aspose.3D FOSS for .NET
Naamruimte: Aspose.ThreeD.Formats
Elk ondersteund formaat heeft een toegewijd paar laad- en opslaanoptieklassen waarmee je het import- en exportgedrag kunt regelen.
ObjLoadOptions
Load‑opties voor Wavefront OBJ‑bestanden (.obj).
var opts = new ObjLoadOptions();
scene.Open("model.obj", opts);ObjSaveOptions
Save‑opties voor Wavefront OBJ‑bestanden.
var opts = new ObjSaveOptions();
scene.Save("output.obj", opts);StlLoadOptions
Laadopties voor STL‑bestanden (binair en ASCII).
var opts = new StlLoadOptions();
scene.Open("part.stl", opts);StlSaveOptions
Opslagopties voor STL‑output.
var opts = new StlSaveOptions();
scene.Save("output.stl", opts);GltfLoadOptions
Load‑opties voor glTF 2.0‑ en GLB‑bestanden (.gltf, .glb).
var opts = new GltfLoadOptions();
scene.Open("model.gltf", opts);GltfSaveOptions
Opslagopties voor glTF 2.0 en GLB-uitvoer. In de huidige FOSS-editie, GltfSaveOptions definieert geen formatspecifieke eigenschappen. Gebruik de bestandsextensie om het uitvoerformaat te bepalen: .gltf voor JSON-gebaseerde glTF, .glb voor binaire GLB.
scene.Save("output.gltf"); // JSON glTF
scene.Save("output.glb"); // binary GLBFbxLoadOptions
Laadopties voor FBX‑bestanden (.fbx).
var opts = new FbxLoadOptions();
scene.Open("model.fbx", opts);FbxSaveOptions
Opslaanopties voor FBX‑uitvoer.
| Example | Example | Example |
|---|---|---|
IsAscii | bool | true voor ASCII FBX, false voor binaire |
var opts = new FbxSaveOptions() { IsAscii = true };
scene.Save("output.fbx", opts);TmfLoadOptions
Laadopties voor 3MF‑bestanden.
var opts = new TmfLoadOptions();
scene.Open("model.3mf", opts);TmfSaveOptions
Opslaanopties voor 3MF‑uitvoer.
var opts = new TmfSaveOptions();
scene.Save("output.3mf", opts);