Aspose.3D for Java 20.5发行说明

改进和变更

 钥匙摘要类别
THREEDNET-664 不支持使用LZMA压缩的 JT文件。 增强
THREEDNET-502  改进OAP查询,添加对Material/AssetInfo/Transform的支持 增强
THREEDNET-668 加载DXF文件时的 异常 Bug
THREEDNET-669  将修复的网格导出到OBJ将失败 Bug
THREEDNET-670  Node.GetBoundingBox() 错误的值。 Bug
THREEDJAVA-73 将3D文件转换为PNG时的 异常 Bug

公共API和向后不兼容的更改

  • 将SelectSingleObject/SelectObjects的签名从com.aspose.threed.Node
 //public java.util.ArrayList<com.aspose.threed.A3DObject> com.aspose.threed.Node.selectObjects(java.lang.String) throws com.aspose.threed.ParseException;

public java.util.ArrayList<java.lang.Object> com.aspose.threed.Node.selectObjects(java.lang.String) throws com.aspose.threed.ParseException;

//public com.aspose.threed.A3DObject com.aspose.threed.Node.selectSingleObject(java.lang.String) throws com.aspose.threed.ParseException;

public java.lang.Object com.aspose.threed.Node.selectSingleObject(java.lang.String) throws com.aspose.threed.ParseException;

示例代码

 Scene scene = new Scene(new Torus());

for(Object bbox : scene.getRootNode().selectObjects("//<BoundingBox>"))

{

     System.out.printf("Found a bbox : %s\n", bbox);

}

这是由THREEDNET-502引入的,它可以查询更深的对象,如材质/纹理/资产信息/变换/顶点元素。

  • 修正了com.a中的错字斯博斯。三向。HShape
 //public void com.aspose.threed.HShape.setOveralDepth(double);

public void com.aspose.threed.HShape.setOverallDepth(double);

//public double com.aspose.threed.HShape.getOveralDepth();

public double com.aspose.threed.HShape.getOverallDepth();