Load and Save Options — Aspose.3D FOSS for Java
FbxSaveOptions
सभी आयात और निर्यात संचालन एक वैकल्पिक options object स्वीकार करते हैं, जो LoadOptions या SaveOptions. उपयुक्त subclass को पास करें Scene.open() या Scene.save() format-specific व्यवहार को नियंत्रित करने के लिए।.
FbxSaveOptions: com.aspose.threed
import com.aspose.threed.*;LoadOptions
सभी load-option objects के लिए बेस क्लास। Extends A3DObject.
| FbxSaveOptions | FbxSaveOptions | FbxSaveOptions | FbxSaveOptions |
|---|---|---|---|
fileFormat | FileFormat | getFileFormat() | यह config जिस format से जुड़ा है (read-only) |
SaveOptions
सभी save-option objects के लिए बेस क्लास। Extends A3DObject.
| FbxSaveOptions | FbxSaveOptions | FbxSaveOptions | FbxSaveOptions |
|---|---|---|---|
fileFormat | FileFormat | getFileFormat() | यह config जिस format से जुड़ा है (read-only) |
ObjLoadOptions
Wavefront OBJ फ़ाइलों के लिए लोड विकल्प (.obj).
import com.aspose.threed.*;
ObjLoadOptions opts = new ObjLoadOptions();
opts.setFlipCoordinateSystem(true);
opts.setScale(0.01);
Scene scene = new Scene();
scene.open("model.obj", opts);| FbxSaveOptions | FbxSaveOptions | FbxSaveOptions | FbxSaveOptions | FbxSaveOptions | FbxSaveOptions |
|---|---|---|---|---|---|
flipCoordinateSystem | boolean | getFlipCoordinateSystem() | setFlipCoordinateSystem(boolean) | false | आयात पर निर्देशांक प्रणाली को उलटें |
enableMaterials | boolean | getEnableMaterials() | setEnableMaterials(boolean) | true | साथ में आने वाले को लोड करें .mtl material फ़ाइल |
scale | double | getScale() | setScale(double) | 1.0 | सभी आयातित ज्यामिति पर लागू समान स्केल |
normalizeNormal | boolean | getNormalizeNormal() | setNormalizeNormal(boolean) | true | आयातित सामान्य वेक्टरों को इकाई लंबाई तक सामान्यीकृत करें |
ObjSaveOptions
Wavefront OBJ फ़ाइलों के लिए सहेजने के विकल्प।.
import com.aspose.threed.*;
ObjSaveOptions opts = new ObjSaveOptions();
opts.setEnableMaterials(false);
scene.save("output.obj", opts);| FbxSaveOptions | FbxSaveOptions | FbxSaveOptions | FbxSaveOptions | FbxSaveOptions | FbxSaveOptions |
|---|---|---|---|---|---|
applyUnitScale | boolean | getApplyUnitScale() | setApplyUnitScale(boolean) | false | एक्सपोर्ट किए गए निर्देशांक पर सीन के यूनिट स्केल फ़ैक्टर को लागू करें |
pointCloud | boolean | getPointCloud() | setPointCloud(boolean) | false | केवल वर्टिसेज़ निर्यात करें (पॉलीगॉन फ़ेसेस नहीं) |
verbose | boolean | getVerbose() | setVerbose(boolean) | false | आउटपुट में अतिरिक्त OBJ टिप्पणियाँ शामिल करें |
serializeW | boolean | getSerializeW() | setSerializeW(boolean) | false | नियंत्रण बिंदुओं के W घटक को लिखें |
enableMaterials | boolean | getEnableMaterials() | setEnableMaterials(boolean) | true | एक लिखें .mtl material फ़ाइल और इसे यहाँ से संदर्भित करें .obj |
flipCoordinateSystem | boolean | getFlipCoordinateSystem() | setFlipCoordinateSystem(boolean) | false | निर्यात पर निर्देशांक प्रणाली को उलटें |
GltfLoadOptions
glTF 2.0 और GLB फ़ाइलों के लिए लोड विकल्प (.gltf, .glb).
import com.aspose.threed.*;
GltfLoadOptions opts = new GltfLoadOptions();
opts.setFlipCoordinateSystem(true);
Scene scene = new Scene();
scene.open("model.gltf", opts);| FbxSaveOptions | FbxSaveOptions | FbxSaveOptions | FbxSaveOptions | FbxSaveOptions | FbxSaveOptions |
|---|---|---|---|---|---|
flipCoordinateSystem | boolean | getFlipCoordinateSystem() | setFlipCoordinateSystem(boolean) | false | आयात पर निर्देशांक प्रणाली को उलटें |
prettyPrint | boolean | getPrettyPrint() | setPrettyPrint(boolean) | false | पढ़ने में आसान बनाने के लिए इंडेंटेशन के साथ आउटपुट JSON को फ़ॉर्मेट करें |
GltfSaveOptions
glTF 2.0 और GLB आउटपुट के लिए सहेजने के विकल्प।.
import com.aspose.threed.*;
import com.aspose.threed.FileContentType;
// Save as glTF JSON
GltfSaveOptions opts = new GltfSaveOptions();
scene.save("output.gltf", opts);
// Save as GLB (binary glTF)
GltfSaveOptions glbOpts = new GltfSaveOptions();
glbOpts.setContentType(FileContentType.BINARY);
scene.save("output.glb", glbOpts);| FbxSaveOptions | FbxSaveOptions | FbxSaveOptions | FbxSaveOptions | FbxSaveOptions | FbxSaveOptions |
|---|---|---|---|---|---|
contentType | FileContentType | getContentType() | setContentType(FileContentType) | FileContentType.ASCII | सेट करें FileContentType.BINARY self-contained GLB फ़ाइल बनाने के लिए; सेट करें FileContentType.ASCII JSON के लिए .gltf एक बाहरी बफ़र के साथ |
flipCoordinateSystem | boolean | getFlipCoordinateSystem() | setFlipCoordinateSystem(boolean) | false | निर्यात पर निर्देशांक प्रणाली को उलटें |
prettyPrint | boolean | getPrettyPrint() | setPrettyPrint(boolean) | false | पढ़ने में आसानी के लिए आउटपुट JSON को इंडेंटेशन के साथ फॉर्मेट करें |
bufferFilePrefix | String | getBufferFilePrefix() | setBufferFilePrefix(String) | null | बाहरी बफ़र फ़ाइल नामों के लिए उपसर्ग |
saveExtras | String | getSaveExtras() | setSaveExtras(String) | null | glTF आउटपुट में शामिल करने के लिए कस्टम अतिरिक्त डेटा |
StlLoadOptions
STL फ़ाइलों के लिए लोड विकल्प (.stl).
import com.aspose.threed.*;
StlLoadOptions opts = new StlLoadOptions();
opts.setFlipCoordinateSystem(true);
Scene scene = new Scene();
scene.open("part.stl", opts);| FbxSaveOptions | FbxSaveOptions | FbxSaveOptions | FbxSaveOptions | FbxSaveOptions | FbxSaveOptions |
|---|---|---|---|---|---|
flipCoordinateSystem | boolean | getFlipCoordinateSystem() | setFlipCoordinateSystem(boolean) | false | इम्पोर्ट पर निर्देशांक प्रणाली को उलटें |
recalculateNormal | boolean | getRecalculateNormal() | setRecalculateNormal(boolean) | false | इम्पोर्ट पर ज्यामिति से नॉर्मल्स की पुनः गणना करें |
contentType | FileContentType | getContentType() | setContentType(FileContentType) | – | बाइनरी बनाम ASCII STL पहचान के लिए संकेत |
StlSaveOptions
STL आउटपुट के लिए सहेजने के विकल्प।.
import com.aspose.threed.*;
StlSaveOptions opts = new StlSaveOptions();
opts.setContentType(FileContentType.BINARY);
scene.save("output.stl", opts);| FbxSaveOptions | FbxSaveOptions | FbxSaveOptions | FbxSaveOptions | FbxSaveOptions | FbxSaveOptions |
|---|---|---|---|---|---|
flipCoordinateSystem | boolean | getFlipCoordinateSystem() | setFlipCoordinateSystem(boolean) | false | एक्सपोर्ट पर निर्देशांक प्रणाली को उलटें |
axisSystem | AxisSystem | getAxisSystem() | setAxisSystem(AxisSystem) | – | एक्सपोर्ट पर लक्ष्य अक्ष प्रणाली को ओवरराइड करें |
contentType | FileContentType | getContentType() | setContentType(FileContentType) | FileContentType.BINARY | सेट करें BINARY या ASCII आउटपुट फ़ॉर्मेट को नियंत्रित करने के लिए |
FbxLoadOptions
FBX फ़ाइलों के लिए लोड विकल्प (.fbx).
import com.aspose.threed.*;
FbxLoadOptions opts = new FbxLoadOptions();
opts.setFlipCoordinateSystem(true);
Scene scene = new Scene();
scene.open("animation.fbx", opts);| FbxSaveOptions | FbxSaveOptions | FbxSaveOptions | FbxSaveOptions | FbxSaveOptions | FbxSaveOptions |
|---|---|---|---|---|---|
flipCoordinateSystem | boolean | getFlipCoordinateSystem() | setFlipCoordinateSystem(boolean) | false | आयात पर निर्देशांक प्रणाली को उलटें |
FbxSaveOptions
ध्यान दें: FBX निर्यात है उपलब्ध नहीं है Java FOSS संस्करण में। FBX केवल आयात के लिए समर्थित है। यह FbxSaveOptions क्लास API में मौजूद है लेकिन यदि इसे सहेजने के लिए उपयोग किया गया तो त्रुटि उत्पन्न होगी। निर्यात के लिए इसके बजाय OBJ, STL, glTF, या GLB का उपयोग करें।.