Skip to content

Instantly share code, notes, and snippets.

@aspose-com-gists
Last active December 23, 2021 05:40
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/20dedbe199a4a92959e06063d8bc6ac3 to your computer and use it in GitHub Desktop.
Save aspose-com-gists/20dedbe199a4a92959e06063d8bc6ac3 to your computer and use it in GitHub Desktop.
Convert STL to FBX or glTF GLB Programmatically with C# .NET
// 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