Skapa ett tomt 3D-dokument
Contents
[
Hide
]
Skapa en tom 3D Scene och spara i format som stöds 3D
Aspose. 3D for Java API har stöd för att skapa 3D scen från början, och spara sedan i stödt 3D format.
Skapa en tom 3D Scene
Please follow these steps to create a 3D Scene with Aspose.3D for Java API:
- Skapa en instans iSceneKlass som representerar 3D scen.
- Skapa 3D-dokumentet genom att ringaSparaMetodenSceneKlasseinstans.
Skapa en tom 3D Scene: Programmeringsprovning
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); |