Load and Save Options — Aspose.3D FOSS for .NET
Namespace: Aspose.ThreeD.Formats
Hvert understøttet format har et dedikeret par af indlæsnings- og gemmeindstillingsklasser, som giver dig mulighed for at styre import- og eksportadfærd.
ObjLoadOptions
Indlæsningsindstillinger for Wavefront OBJ-filer.
var opts = new ObjLoadOptions();
scene.Open("model.obj", opts);ObjSaveOptions
Gemmeindstillinger for Wavefront OBJ-output.
var opts = new ObjSaveOptions();
scene.Save("output.obj", opts);StlLoadOptions
Indlæsningsindstillinger for STL-filer (binære og ASCII).
var opts = new StlLoadOptions();
scene.Open("part.stl", opts);StlSaveOptions
Gemmeindstillinger for STL-output.
var opts = new StlSaveOptions();
scene.Save("output.stl", opts);GltfLoadOptions
Indlæsningsindstillinger for glTF 2.0- og GLB-filer.
var opts = new GltfLoadOptions();
scene.Open("model.gltf", opts);GltfSaveOptions
Gem indstillinger for glTF 2.0 og GLB-uddata. I den aktuelle FOSS-udgave, GltfSaveOptions definerer ikke format‑specifikke egenskaber. Brug filendelsen til at styre outputformatet: .gltf for JSON‑baseret glTF, .glb for binær GLB.
scene.Save("output.gltf"); // JSON glTF
scene.Save("output.glb"); // binary GLBFbxLoadOptions
Indlæsningsindstillinger for FBX-filer.
var opts = new FbxLoadOptions();
scene.Open("model.fbx", opts);FbxSaveOptions
Gemmeindstillinger for FBX-output.
| Example | Example | Example |
|---|---|---|
IsAscii | bool | true for ASCII FBX, false for binær |
var opts = new FbxSaveOptions() { IsAscii = true };
scene.Save("output.fbx", opts);TmfLoadOptions
Indlæsningsindstillinger for 3MF-filer.
var opts = new TmfLoadOptions();
scene.Open("model.3mf", opts);TmfSaveOptions
Gemmeindstillinger for 3MF-output.
var opts = new TmfSaveOptions();
scene.Save("output.3mf", opts);