Create an Empty 3D document
Contents
[
Hide
]
Create an Empty 3D Scene and save in Supported 3D format
Aspose.3D for Java API has support of creating 3D scene from scratch, and then save in supported 3D format.
Creating an Empty 3D Scene
Please follow these steps to create a 3D Scene with Aspose.3D for Java API:
- Create an instance of the Scene class that represents 3D scene.
- Generate 3D document by calling the save method of the Scene class instance.
Creating an Empty 3D Scene: Programming Samples
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); |