Developer Guide
Developer Guide
This section covers the core capabilities of aspose-3d-foss 26.1.0 for Java. All classes reside in the com.aspose.threed package.
Scene I/O
The Scene class is the top-level container. Use scene.open() to load and scene.save() to export:
import com.aspose.threed.Scene;
Scene scene = new Scene();
scene.open("model.fbx");
scene.save("model.glb");Format is auto-detected from the file extension.
Scene Graph
Every scene has a root node accessed via scene.getRootNode(). Attach children with createChildNode():
import com.aspose.threed.*;
Scene scene = new Scene();
Mesh mesh = new Mesh("myMesh");
Node meshNode = scene.getRootNode().createChildNode("myNode", mesh);Supported Formats
| Format | Import | Export |
|---|---|---|
| OBJ | Yes | Yes |
| STL | Yes | Yes |
| glTF 2.0 / GLB | Yes | Yes |
| FBX | Yes | No — FBX export throws ExportException unconditionally; FBX import may produce an empty scene. |
Topics
- Features and Functionalities: Detailed feature walkthrough with Java examples