浏览我们的产品

Aspose.3D for Java 25.11 发行说明

改进和更改

摘要类别
THREEDNET-1726调查在使用结构化元数据时 glTF 中缺失的扩展任务
THREEDNET-1730改进 PolygonList 以减少内存占用任务
THREEDNET-1733改进在加载大文件时 PolygonIndicesList 的内存消耗任务
THREEDNET-1734改进在加载大文件时 Vector4List/VertexElement 的内存消耗改进
THREEDNET-1728调查导入 obj 时出现的数百万材质问题错误修复
THREEDNET-1729引用材质文件的 Obj 文件无法导入错误修复
THREEDNET-1735USDZ 存档内的纹理未加载错误修复

API 更改

新增类 com.aspose.threed.VertexElementFVector

该类是 VertexElementVertexColorVertexElementUVVertexElementBinormalVertexElementNormalVertexElementTangentVertexElementSpecular 的基类。

此类用于取代 VertexElementVector4,内部使用 float 替代 double,并根据需求扩展组件,从而在大型 3D 文件中显著降低内存占用,旧的 VertexElementVector4 现已标记为过时,未来将被移除。

为类 com.aspose.threed.FVector2 添加成员:

	public int compareTo(com.aspose.threed.FVector2 other)

此方法允许比较不同的 FVector2 实例。

为类 com.aspose.threed.FVector3 添加成员:

	public int compareTo(com.aspose.threed.FVector3 other)

此方法允许比较不同的 FVector3 实例。

	public static com.aspose.threed.FVector3 parse(String input)

从以空格分隔的字符串表示中解析 FVector3。

示例代码

var vec = FVector3.parse("0.0 0.3 1.5");

	public static com.aspose.threed.FVector3 getUnitX()
	public static com.aspose.threed.FVector3 getUnitY()
	public static com.aspose.threed.FVector3 getUnitZ()

获取 X/Y/Z 轴上的单位向量。

为类 com.aspose.threed.FVector4 添加成员:

	public int compareTo(com.aspose.threed.FVector4 other)

此方法允许比较不同的 FVector4 实例。

为类 com.aspose.threed.Vector3 添加成员:

	public static com.aspose.threed.Vector3 parse(String input)

示例代码

var vec = Vector3.parse("0.0 0.3 1.5");

为类 com.aspose.threed.Vector4 添加成员:

	public double getLength()

获取 Vector4 向量的长度。


 
 简体中文