Aspose.3D for Java 21.9发行说明

改进和变更

钥匙摘要类别
THREEDNET-930添加PCD导出支持新功能
THREEDNET-926添加XYZ导入支持新功能
THREEDNET-927添加XYZ导出支持新功能
THREEDNET-938基于三角形区域的点云曲面生成算法新功能
THREEDNET-932以A3DW格式添加点云导入支持新功能
THREEDNET-931以A3DW格式添加点云导出支持特征
THREEDNET-946Fixed PointCloud无法导出为PLY格式错误修复
THREEDNET-934从USDZ转换为OBJ结果异常错误修复
THREEDNET-936FBX导入器中由GC引起的锁争用改进

API更改

21.9中的大多数更改与PointCloud相关,添加了对PointCloud的XYZ/PCD支持,PLY中的定点云导出,A3DW/HTML中添加了PointCloud导入/导出/渲染支持。

在类com.aspose.threed.PointCloud中添加了新方法:

    /**
     * Create a new point cloud instance from a geometry object.
     * Density is the number of points per unit triangle(Unit triangle are the triangle with maximum surface area from the mesh)
     * @param g Mesh or other geometry instance
     * @param density Number of points per unit triangle
     */
    public static PointCloud fromGeometry(Geometry g, int density);

新的FromGeometry允许您指定几何三角形中分布点的密度。

示例代码:

        var prim = new Torus();
        var pc = PointCloud.fromGeometry(prim.toMesh(), 50);
        var s = new Scene(pc);
        s.save("point-cloud.glb", FileFormat.GLTF2_BINARY);

在类com.aspose.threed.FileFormat中添加了新的格式:

    /**
     * Xyz point cloud file
     */
    public static final FileFormat XYZ;
    /**
     * PCL Point Cloud Data file in ASCII mode
     */
    public static final FileFormat PCD;
    /**
     * PCL Point Cloud Data file in Binary mode
     */
    public static final FileFormat PCD_BINARY;

示例代码:

        var prim = new Torus();
        var pc = PointCloud.fromGeometry(prim.toMesh(), 50);
        var s = new Scene(pc);
        s.save("point-cloud.glb", FileFormat.PCD);