Erstellen Sie ein leeres 3D-Dokument
Contents
[
Hide
]
Erstellen Sie eine leere 3D-Szene und speichern Sie im unterstützten 3D-Format
Aspose.3D for Java API unterstützt die Erstellung einer 3D-Szene von Grund auf und spart dann im unterstützten 3D-Format.
Erstellen einer leeren 3D-Szene
Please follow these steps to create a 3D Scene with Aspose.3D for Java API:
- Erstellen Sie eine Instanz desSzeneKlasse, die 3D Szene darstellt.
- Erstellen Sie ein 3D-Dokument, indem Sie dieSparenMethode derSzeneKlassen instanz.
Erstellen einer leeren 3D-Szene: Samples programmieren
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(); | |
MyDir = MyDir + "document.fbx"; | |
// Create an object of the Scene class | |
Scene scene = new Scene(); | |
// Save 3D scene document | |
scene.save(MyDir, FileFormat.FBX7500ASCII); |