Risparmia 3D documento
Contents
[
Hide
]
Elenco dei formati supportati da 3D (esportazione)
Aspose.3D for Java API supporta il salvataggio di 3D in vari tipi di documenti 3D. I formati di file scrivibili supportati sono i seguenti:
- FBX 7.2 (ASCII, binario)
- FBX 7.3 (ASCII, binario)
- FBX 7.4 (ASCII, binario)
- FBX 7.5 (ASCII, binario)
- STL (ASCII, binario)
- WavefrontOBJ
- Discreet3DS
- Universal3D
- Collada
- glTF
- GLB
- Draco
- GLTF 2.0 (ASCII, Binario)
- RVM (testo, binario)
Esporta 3D documento
Aspose.3D for Java API supporta il salvataggio di una scena 3D in vari tipi di documenti 3D.
Risparmio di una scena 3D: campioni di programmazione
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// The path to the documents directory. | |
String MyDir = RunExamples.getDataDir(); | |
// Load a 3D document into Aspose.3D | |
Scene scene = new Scene(); | |
// Open an existing 3D scene | |
scene.open(MyDir + "document.fbx"); | |
// Save Scene to a stream | |
try (MemoryStream dstStream = new MemoryStream()) { | |
scene.save(dstStream, FileFormat.FBX7500ASCII); | |
} | |
// Save Scene to a local path | |
scene.save(MyDir + "output_out.fbx", FileFormat.FBX7500ASCII); |