Created
April 27, 2024 01:56
-
-
Save conholdate-gists/fd5875fdf7419c3de068a6f713cd6b39 to your computer and use it in GitHub Desktop.
Convert STL to OBJ in C# .NET or 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 | |
Aspose.ThreeD.Scene scene = new Aspose.ThreeD.Scene(); | |
// Load input STL file with Open method | |
scene.Open("test.stl"); | |
// Specify the output format for the Wavefront OBJ file | |
Aspose.ThreeD.FileFormat outputformat = Aspose.ThreeD.FileFormat.WavefrontOBJ; | |
// Convert STL to OBJ Object file | |
scene.Save("test.obj", 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
// Initialize an object of Scene class | |
com.aspose.threed.Scene scene = new com.aspose.threed.Scene(); | |
// Load input STL file with Open method | |
scene.open("test.stl"); | |
// Specify the output format for the Wavefront OBJ file | |
com.aspose.threed.FileFormat outputformat = com.aspose.threed.FileFormat.WAVEFRONTOBJ; | |
// Convert STL to OBJ Object file | |
scene.save("test.obj", outputformat); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment