Streamlined Scene I/O
Aspose.3D for Node.js via Java 24.2 now supports InputStream
and OutputStream
for scene operations, simplifying file handling within your Node.js applications.
Improved OBJ to GLTF Conversion
Experience improved handling of large numbers of vertices during OBJ to GLTF conversion with the new Node.js API release.
.NET Framework Upgrade
Support for .NET 8.0 is now available in Aspose.3D for Node.js via Java, keeping your development environment up-to-date.
Improved FBX Export
Skeleton nodes in FBX exports now include pose information for better animation compatibility within your 3D processing Node.js solutions.
Simplified Mesh Triangulation
The newly added triangulate
method in the Mesh
class allows you to easily convert non-triangular meshes into triangulated ones. The following code example highlights the method usage:
//The plane mesh has only one polygon with 4 control points
Mesh mesh = (new Plane()).toMesh();
//After triangulated, the new mesh's rectangle will become 2 triangles.
Mesh triangulated = mesh.triangulate();
Source*
Expanded TriMesh Class
The TriMesh
class gains new functionalities in this version of Aspose.3D for Node.js via Java for adding triangles, and writing vertex and index data to streams, providing more control over mesh manipulation. This code sample illustrates the addition of triangles to the TriMesh in Node.js:
int[] indices = new int[] { 0, 1, 2 };
byte[] 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.F_VECTOR3, 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*
You can view the list of all new features, enhancements, and bug fixes introduced in this release by visiting Aspose.3D for Node.js via Java 24.2 Release Notes.