You can find all details at: Convert STL to FBX or glTF GLB Programmatically using Java
Last active
July 7, 2021 21:24
-
-
Save aspose-com-gists/82376968b45d7c8bc6c4ac0c767acb8e to your computer and use it in GitHub Desktop.
Convert STL to FBX | STL to glTF GLB Programmatically using 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
// Initialize an object of Scene class | |
Scene scene = new Scene(); | |
// Load input STL file with Open method | |
scene.open("test.stl"); | |
// Specify the output format for the FBX file | |
FileFormat outputformat = FileFormat.FBX7200ASCII; | |
// Save output FBX file | |
scene.save("test.fbx", outputformat); |
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 STL file using Scene class | |
Scene scene = new Scene("test.stl"); | |
// Specify output file format as GLB | |
FileFormat outputFormat = FileFormat.GLTF2_BINARY; | |
// Save output GLB file | |
scene.save("test.glb", outputFormat); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment