Aspose.3D for Java 19.4发行说明

改进和变更

钥匙摘要类别
THREEDNET-483 支持VRML格式新功能
THREEDJAVA-26渲染对Aspose.3D for Java的支持新功能
THREEDNET-496 Fbx7500二进制出口腐败问题Bug

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

请参阅对公共API所做的任何更改的列表,如添加、重命名、删除或不推荐使用的成员,以及对Aspose.3D for Java所做的任何非向后兼容的更改。如果您对列出的任何更改有疑问,请在Aspose.3D支持论坛

在类com.aspose.threed.Sphere中添加了新的属性半径

 /**

 * Gets the radius of the sphere.

 */

public double getRadius();

/**

 * Sets the radius of the sphere.

 * @param value New value

 */

public void setRadius(double value);

通过属性而不是构造函数参数指定半径的示例代码:

 Scene scene = new Scene();

Sphere sphere = new Sphere();

sphere.setRadius(10);

scene.getRootNode().createChildNode(sphere);

scene.save("sphere.obj", FileFormat.WAVEFRONTOBJ);

在类com.aspose.threed.FileFormat和com.aspose.threed.FileFormatType中添加了新的文件格式VRML

 /**

 * The Virtual Reality Modeling Language

 */

public static final FileFormat VRML;

Aspose.3D可以自动检测VRML格式,因此在Open方法中通常会忽略FileFormat。示例代码:

 Scene scene = new Scene();

scene.open("test.wrl");