Skip to content

Instantly share code, notes, and snippets.

@aspose-com-gists
Last active July 7, 2021 21:24
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save aspose-com-gists/82376968b45d7c8bc6c4ac0c767acb8e to your computer and use it in GitHub Desktop.
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
// 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);
// 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