For more details, please visit Convert OBJ 3D Object File to FBX or STL in Java
Last active
December 22, 2021 20:32
-
-
Save aspose-com-gists/48c3e21ff6a4a08171f83eaa871ae100 to your computer and use it in GitHub Desktop.
Convert OBJ 3D Object File to FBX or STL Programmatically in Java
This file contains 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
// Load input OBJ file with Scene class. | |
Scene scene = new Scene("scene.obj"); | |
// Initialize FBXSaveOptions object with SaveFormat enumeration. | |
FbxSaveOptions options = new FbxSaveOptions(FileFormat.FBX7400ASCII); | |
// Convert OBJ to FBX file. | |
scene.save("Test.fbx", options); |
This file contains 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
// Load input OBJ file with Scene class. | |
Scene scene = new Scene("scene.obj"); | |
// Initialize STLSaveOptions class object. | |
StlSaveOptions saveSTLOpts = new StlSaveOptions(); | |
// Convert OBJ to STL file. | |
scene.save("test.stl", saveSTLOpts); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment