For more details, please visit Convert STL to FBX or glTF GLB using C#
Last active
December 23, 2021 05:40
-
-
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
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