Load and Save Options

Load and Save Options — Aspose.3D FOSS for Java

FbxSaveOptions

모든 가져오기 및 내보내기 작업은 선택적 옵션 객체를 허용하며, 이는 다음에서 파생됩니다 LoadOptions 또는 SaveOptions. 적절한 서브클래스를 전달하여 Scene.open() 또는 Scene.save() 형식별 동작을 제어합니다.

FbxSaveOptions: com.aspose.threed

import com.aspose.threed.*;

LoadOptions

모든 로드 옵션 객체의 기본 클래스입니다. Extends A3DObject.

FbxSaveOptionsFbxSaveOptionsFbxSaveOptionsFbxSaveOptions
fileFormatFileFormatgetFileFormat()이 구성과 연결된 형식 (읽기 전용)

SaveOptions

모든 저장 옵션 객체의 기본 클래스입니다. Extends A3DObject.


ObjLoadOptions

Wavefront OBJ 파일에 대한 로드 옵션 (.obj).

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` 재질 파일 |
| `scale`                | `double`       | `getScale()`                | `setScale(double)`                 | `1.0`          | 가져온 모든 기하학에 적용되는 균일 스케일 |
| `normalizeNormal`      | `boolean`      | `getNormalizeNormal()`      | `setNormalizeNormal(boolean)`      | `true`         | 가져온 법선 벡터를 단위 길이로 정규화   |

---

## ObjSaveOptions

Wavefront OBJ 파일에 대한 저장 옵션.



ObjSaveOptions opts = new ObjSaveOptions();
opts.setEnableMaterials(false);
scene.save("output.obj", opts);
FbxSaveOptionsFbxSaveOptionsFbxSaveOptionsFbxSaveOptionsFbxSaveOptionsFbxSaveOptions
applyUnitScalebooleangetApplyUnitScale()setApplyUnitScale(boolean)false내보낸 좌표에 씬의 단위 스케일 계수를 적용
pointCloudbooleangetPointCloud()setPointCloud(boolean)false정점만 내보내기 (폴리곤 면 제외)
verbosebooleangetVerbose()setVerbose(boolean)false출력에 추가 OBJ 주석을 포함
serializeWbooleangetSerializeW()setSerializeW(boolean)false제어점의 W 구성 요소를 기록
enableMaterialsbooleangetEnableMaterials()setEnableMaterials(boolean)truea를 기록 .mtl material 파일을 이를 …에서 참조합니다 .obj
flipCoordinateSystembooleangetFlipCoordinateSystem()setFlipCoordinateSystem(boolean)false내보낼 때 좌표계를 뒤집기

GltfLoadOptions

glTF 2.0 및 GLB 파일에 대한 로드 옵션 (.gltf, .glb).

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 출력에 대한 저장 옵션.

```java
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);
FbxSaveOptionsFbxSaveOptionsFbxSaveOptionsFbxSaveOptionsFbxSaveOptionsFbxSaveOptions
contentTypeFileContentTypegetContentType()setContentType(FileContentType)FileContentType.ASCII다음으로 설정 FileContentType.BINARY 자체 포함 GLB 파일을 생성하려면; 다음으로 설정 FileContentType.ASCII JSON용 .gltf 외부 버퍼와 함께
flipCoordinateSystembooleangetFlipCoordinateSystem()setFlipCoordinateSystem(boolean)false내보낼 때 좌표계 뒤집기
prettyPrintbooleangetPrettyPrint()setPrettyPrint(boolean)false가독성을 위해 들여쓰기로 출력 JSON 포맷
bufferFilePrefixStringgetBufferFilePrefix()setBufferFilePrefix(String)null외부 버퍼 파일 이름 접두사
saveExtrasStringgetSaveExtras()setSaveExtras(String)nullglTF 출력에 포함할 사용자 정의 extras 데이터

StlLoadOptions

STL 파일 로드 옵션 (.stl).

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)`  | --             | 바이너리 vs ASCII STL 감지를 위한 힌트 |

---

## StlSaveOptions

STL 출력에 대한 저장 옵션.



StlSaveOptions opts = new StlSaveOptions();
opts.setContentType(FileContentType.BINARY);
scene.save("output.stl", opts);
FbxSaveOptionsFbxSaveOptionsFbxSaveOptionsFbxSaveOptionsFbxSaveOptionsFbxSaveOptions
flipCoordinateSystembooleangetFlipCoordinateSystem()setFlipCoordinateSystem(boolean)false내보내기 시 좌표계 뒤집기
axisSystemAxisSystemgetAxisSystem()setAxisSystem(AxisSystem)내보내기 시 대상 축 시스템을 재정의
contentTypeFileContentTypegetContentType()setContentType(FileContentType)FileContentType.BINARY설정 BINARY 또는 ASCII 출력 형식을 제어하려면

FbxLoadOptions

FBX 파일에 대한 로드 옵션 (.fbx).

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를 사용하여 내보내세요.

---

## 참고

- [FileFormat 클래스 참조](/3d/java/file-format/)
- [Scene 클래스 참조](/3d/java/scene/)
 한국어