STL files are used in computer-aided manufacturing as these files contain 3D geometrical information. Whereas, a USDZ file is often used to create augmented-reality-based scenes. In certain use cases, you might need to convert an STL file to USDZ format. This article covers how to convert an STL file to a USDZ file programmatically in C#.
STL to USDZ Converter – C# API Installation
Aspose.3D for .NET API supports creating, editing, or manipulating FBX, OBJ, and many other supported formats. Simply access the API by downloading its DLL files from the Downloads pages or use the following NuGet installation command:
PM> Install-Package Aspose.3D
Convert STL to USDZ Format Programmatically in C#
You can convert an STL file to the USDZ format by following the steps below:
- Load the input STL file with an instance of the Scene class
- Initialize an instance of the UsdSaveOptions class.
- Convert STL to USDZ format.
The following code sample shows how to convert an STL file to USDZ format in C#:
Explore API Features
The API supports several other file conversions and 3D scene manipulations as discussed in different chapters in the documentation section. You may like to take a look to check other APIs supported to work with three-dimensional graphics.
Get Free Temporary License
You may test all the features of the API in their full capacity by getting a free temporary license. It enables you to evaluate the performance of the API without any evaluation limitations.
In this article, you have explored how to convert an STL file to USDZ format programmatically in C#. However, in case you need to discuss any of your requirements or queries, please write to us at the forum.