Skip to content

Instantly share code, notes, and snippets.

@conholdate-gists
Created April 27, 2024 01:56
Show Gist options
  • Save conholdate-gists/fd5875fdf7419c3de068a6f713cd6b39 to your computer and use it in GitHub Desktop.
Save conholdate-gists/fd5875fdf7419c3de068a6f713cd6b39 to your computer and use it in GitHub Desktop.
Convert STL to OBJ in C# .NET or Java
// 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);
// 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