Aspose.3D for Node.js via Java 24.1 equips developers with a range of improvements for seamless 3D document processing within their Node.js applications.
Optimize Meshes and Reduce File Size
We have reduced memory consumption in the latest 3D API update by eliminating duplicated control points within meshes using the new optimized method of the Mesh
class. This code sample showcases how to use the newly added class:
Mesh mesh = (new Box()).toMesh();
// 1341 bytes, 24 vertices, 24 normals, 24 texture coordinates,
(new Scene(mesh)).save("unoptimized.obj");
// Eliminate the duplicated control points and vertex element data by reusing the same vector.
Mesh optimizedMesh = mesh.optimize(true);
// 640 bytes, 8 vertices, 6 normals, 4 texture coordinates
(new Scene(optimizedMesh)).save("optimized.obj");
Source*
Customizable Axis System Export
Node.js developers can gain greater control over the coordinate system and specify the axis system, up vector, and front vector during the export process for OBJ, STL, and PLY formats with the new AxisSystem
class and related functionalities in ObjSaveOptions
, PlySaveOptions
, and StlSaveOptions
classes. The following code example illustrates the usage of the AxisSystem
and PlySaveOptions
classes.
Scene scene = Scene.fromFile("input.fbx");
PlySaveOptions opt = new PlySaveOptions();
opt.setAxisSystem(new AxisSystem(CoordinateSystem.RIGHT_HANDED, Axis.Y_AXIS, Axis.X_AXIS));
opt.FlipCoordinate = true;
scene.Save("test.ply", opt);
Source*
Enhanced Bone Link Modes
Seamlessly manage bone connections within a hierarchical structure more effectively using the new BoneLinkMode
class in Aspose.3D for Node.js via Java 24.1 and ensure compatibility with FBX bone linking behaviors. Please check out the following code example to learn about feature usage:
Bone boneToLimbNode1 = new Bone("")
bone.setNode(limbNode1);
bone.setLinkMode(BoneLinkMode.TOTAL_ONE);
Source*
Updated Boolean Mesh Operations
Users can now perform complex boolean operations on meshes with improved functionality to enable more versatile 3D model manipulation.
Improved OBJ Texture Export
This update addresses the problems with incorrect texture exporting in OBJ format and allows you to experience accurate texture representation.
FBX Export Grouping Fix
The issue with incorrect model grouping during FBX export has been resolved, which leads to more faithful model exports within your Node.js 3D file manipulation solutions.
Bind Point Enhancements
The AnimationNode
class now offers the findBindPoint
method, helping you locate bind points based on both target and name for more streamlined animation management.
Other Updates and Fixes
We have incorporated various fixes and optimizations in this API version to address texture-related issues in GLTF exports, memory allocation for large textures, and animation data compatibility.
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.1 Release Notes.