Last active
November 26, 2022 07:19
Code to Convert FBX to STL in C#. For more details: https://kb.aspose.com/3d/net/how-to-convert-fbx-to-stl-in-csharp/
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
using Aspose.ThreeD; | |
namespace AsposeProjects | |
{ | |
class Program | |
{ | |
static void Main(string[] args) // Main function to convert FBX to STL using C# | |
{ | |
// Initialize license | |
License lic = new License(); | |
lic.SetLicense("Aspose.Total.lic"); | |
// Load the input FBX file | |
Scene document = Scene.FromFile("test.fbx"); | |
// Create StlSaveOptions class object | |
Aspose.ThreeD.Formats.StlSaveOptions options = new Aspose.ThreeD.Formats.StlSaveOptions(); | |
// Convert FBX to STL file | |
document.Save("output.stl", options); | |
System.Console.WriteLine("FBX to STL is converted successfully"); | |
} | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment