English
 English

3D File Processing and Manipulation API for .NET

Simplify the processing of 3D file formats such as FBX, STL, 3DS, OBJ, U3D, DAE, DRC, DXF, DirectX, 3MF, and more types of 3D files using the Aspose .NET 3D API.

Download Free TrialView All APIs

Powerful 3D Rendering Capabilities for .NET Apps

Aspose.3D for .NET is a full-featured 3D file format processing and manipulation API to programmatically create, render, edit, and convert 3D documents. It offers a complete 3D document format processing experience for .NET developers to efficiently manipulate the substance of different types of 3D files. The 3D API for .NET supports popular 3D file formats, including AutoDesk (FBX), STL, Wavefront (OBJ), Discreet 3D Studios (3DS), Universal3D (U3D), Collada (DAE), Google Draco (DRC), DirectX, DXF, 3MF, and more. Developers can access and work with various elements of the object model, such as scenes, mesh, node, property, vertex, polygonbuilder, box, torus, sphere, plane, cylinder, and more.

The .NET 3D API provides all the necessary tools for developers to upgrade their .NET apps by integrating 3D rendering and conversion capabilities. You can create and export 3D scenes, add animations, manage geometry and mesh, enhance cylinder creation, insert cameras into scenes, render 3D views as images, and do much more. The 3D file format conversion API lets you quickly and easily convert 3D files from one format to another. Build unique 3D document rendering solutions independently with the .NET API without requiring additional 3D rendering or modeling software.

Getting Started

Please review the following information to set up Aspose.3D for .NET. You can check a list of prerequisites on the System Requirements page to help install the .NET 3D file processing and manipulation API and enjoy a great user experience.

Aspose.3D for .NET Installation

You can download the DLLs or the MSI installer from the downloads section to install the .NET 3D library. Alternatively, you can obtain the NuGet package to set up the library using the Microsoft Visual Studio Package Manager Console using the below-given command:

PM > Install-Package Aspose.3D

Optimize Creating 3D Scenes and Convert 3D File Formats in .NET

Aspose.3D for .NET API is the perfect choice for creating 3D scenes programmatically within your C# .NET apps. The completed 3D scene could be exported to one of the supported file formats. Seamlessly convert 3D document formats using the excellent 3D file conversion features of the .NET API. Create high-performance 3D file processing solutions to optimize your document management workflow.

Advanced 3D Scene Maker in C#

You can create 3D scenes from scratch with the help of the 3D API for .NET. Use the advanced features for 3D scene creation and manipulation in C# to enhance the 3D manipulation solutions. The below-given steps and information explain how to develop 3D scene maker solutions by creating a simple 3D scene on the .NET platform.

  • Initialize an object of the Scene class.
  • Call the CreateChildNode() method to add some geometry/shape. For example, a Cylinder.
  • Apply child node properties such as Material.
  • Create an instance of the Light class.
  • Add Light entity by calling CreateChildNode() method.
  • Save the scene as FBX using the Save method, by adding the resultant file path and FileFormat.FBX7500ASCII as arguments.
// This code example demonstrates how to create a simple 3D scene in FBX file.
// Initialize 3D scene
var scene = new Scene();

// Initialize Cylinder object
var cylinder = new Cylinder();
cylinder.Name = "Cylinder";

// Create a child node and add Cylinder object
var node = scene.RootNode.CreateChildNode(cylinder);

// Set child node properites
var material = new LambertMaterial() { DiffuseColor = new Vector3(Color.LightBlue) };
material.Name = "Lambert";
node.Material = material;

// Add Light entity
var light = new Light() { LightType = LightType.Point };
light.Name = "Light";
scene.RootNode.CreateChildNode(light).Transform.Translation = new Vector3(10, 0, 10);

// Output file path
var output = @"C:\Files\3D\document.fbx";

// Save 3D scene document
scene.Save(output, FileFormat.FBX7500ASCII);

Efficiently convert FBX to STL in .NET

File conversion is one of the most common requirements for document processing solution makers. Automating the operation of converting files to and from different formats helps increase workflow efficiency. With the 3D file format conversion API, you can convert 3D files between various file formats. The process is simple, and it only takes a few lines of C# coding to convert FBX to STL, two of the most popular 3D file formats. Please check the following steps and information for converting Autodesk to 3D Systems CAD format.

  • Create an instance of the Scene class and load the source FBX file.
  • Initialize the StlSaveOptions class object.
  • Use the Save method to convert the FBX file to STL format. Add the output file path and StlSaveOptions as arguments
// Load the input FBX file using the Scene class
Scene document = new Scene("test.fbx");
// Create an instance of STLSaveOptions class 
STLSaveOptions options = new STLSaveOptions();

// Convert FBX to STL file 
document.Save("test_output.stl", options);

For more working code samples, please visit the GitHub Examples page of Aspose.3D for .NET. Please check out our Free Online 3D Document Processing Apps which let you view, edit, convert, merge, watermark, search, and repair 3D file formats on the fly using your mobile devices.

A Comprehensive 3D Content Manipulation API

Aspose.3D for .NET is a comprehensive API providing easy-to-use methods for reading, rendering, processing, modifying, and converting different types of 3D files. It allows .NET developers to independently work with 3D document formats without relying on additional or third-party software. The 3D API for .NET is loaded with features to build 3D file processing solutions for desktop and web interfaces using different frameworks and development environments that can run across multiple OS. This cross-platform support and the extensive list of functionalities to manipulate 3D files set Aspose.3D for .NET apart from other libraries with similar profiles.

FAQ

1. How can I convert 3D files in .NET?

Converting 3D file formats in .NET is quick and easy using the .NET 3D library. Users can effortlessly convert STL, FBX, OBJ, U3D, 3DS, DRC, DXF, and more 3D document formats in their .NET solutions.

2. How long it takes to process 3D and convert files in .NET?

The 3D content manipulation API for .NET works fast and completes your 3D file processing and conversion requests in no time.

3. Is it safe to process 3D files using the .NET API?

You can be sure of the security of your data files while processing them using the 3D document processing API for .NET. We ensure the privacy of your data and take all required measures to provide you with a secure user experience.

4. Can I process 3D files on Mac OS, Windows, or Linux?

Yes, the .NET 3D file processing and manipulation API works across different OS, frameworks, and operating environments. You can use it on the platform of your choice. Our .NET 3D library does not require installing extra software to function.

Looking for help?

Checkout our support channels for help with your questions related to Aspose product API features and working.

Ready to get started?

Download Free Trial View All APIs