We are excited to announce the release of Aspose.3D for .NET 24.2. This release is packed with various improvements and bug fixes focused on enhancing the developer experience. Get started by downloading the MSI installer today!
Triangulate The Mesh Conveniently
We have introduced the Mesh.Triangulate()
method in the latest C# 3D API update, which simplifies mesh triangulation by automatically converting a mesh with any polygon type (e.g., quads) into triangles. Please check out the following code example to learn how to use this new method in C#:
//The plane mesh has only one polygon with 4 control points
var mesh = (new Plane()).ToMesh();
//After triangulated, the new mesh's rectangle will become 2 triangles.
var triangulated = mesh.Triangulate();
Source*
Add Triangles to TriMesh
Another new addition in Aspose.3D for .NET 24.2 is the TriMesh.AddTriangle(int a, int b, int c)
method. It allows developers to manually add triangles to a TriMesh
object, offering greater control over mesh creation. The following code sample demonstrates the method usage in C#:
var indices = new int[] { 0, 1, 2 };
var vertices = new byte[]{
0, 0, 0, 191,
0, 0, 0, 0,
0, 0, 0, 191,
0, 0, 0, 191,
0, 0, 0, 0,
0, 0, 0, 63,
0, 0, 0, 63,
0, 0, 0, 0,
0, 0, 0, 63
};
VertexDeclaration vd = new VertexDeclaration();
vd.AddField(VertexFieldDataType.FVector3, VertexFieldSemantic.Position);
//create an empty TriMesh with specified vertex declaration
var triMesh = new TriMesh("", vd);
//load vertices directly from bytes
triMesh.LoadVerticesFromBytes(vertices);
triMesh.AddTriangle(0, 1, 2);
Source*
.NET 8.0 Support
Aspose.3D for .NET 24.2 offers seamless integration with the latest .NET 8.0 framework. This update enhances the compatibility of your 3D apps, allowing you the freedom to build solutions targeting the framework of your choice.
Enhanced OBJ to glTF Export
.NET developers can now handle large vertex count models during OBJ to glTF conversion within their 3D document processing solutions.
Bug Fixes
- The FBX exporter now includes transformation data in exported skeleton nodes (THREEDNET-1460).
- Added support for the KHR_mesh_quantization extension during GLTF import (THREEDNET-1494).
- Fixed the animation export issue from GLB to FBX (THREEDNET-1495).
- Resolved issues with unsupported attribute types causing Maya importer to stop (THREEDNET-1496).
- Enhanced handling of primitives without valid property values in USD importer (THREEDNET-1497).
- Fixed the 3MF external reference issue in the build element (THREEDNET-1498).
You can view the list of all new features, enhancements, and bug fixes introduced in this release by visiting Aspose.3D for .NET 24.2 Release Notes.