Aspose.3D for .NET 19.8发行说明
此页面包含以下内容的发行说明Aspose.3D for .NET 19.8
改进和变更
钥匙 | 摘要 | 类别 |
---|---|---|
THREEDNET-528 | 在Wavefront OBJ中添加点云支持 | 新功能 |
THREEDNET-531 | Aspose.3D的安全审查 | 增强 |
THREEDNET-536 | DRC到STL转换失败 | Bug |
THREEDNET-537 | 将PLY转换为GLB的问题 | Bug |
THREEDNET-539 | 大点云可能产生不正确的数据 | Bug |
公共API和向后不兼容的更改
请参阅对公共API所做的任何更改的列表,如添加、重命名、删除或不推荐使用的成员,以及对Aspose.3D for .NET所做的任何非向后兼容的更改。如果您对列出的任何更改有疑问,请在Aspose.3D支持论坛。
在类Aspose.ThreeD.Formats.ObjSaveOptions中添加了新的属性PointCloud
/// <summary>
/// Gets or sets the flag whether the exporter should export the scene as point cloud(without topological structure), default value is false
/// </summary>
public bool PointCloud
{
get;set;
}
以obj格式生成球体点云的示例代码。
var scene = new Scene(new Sphere());
scene.Save(@"sphere.obj", new ObjSaveOptions() { PointCloud = true });
添加了新方法CreatePolygon Aspose.ThreeD.Entities.Mesh
/// <summary>
/// Create a polygon with 4 vertices(quad)
/// </summary>
/// <param name="v1">Index of the first vertex</param>
/// <param name="v2">Index of the second vertex</param>
/// <param name="v3">Index of the third vertex</param>
/// <param name="v4">Index of the fourth vertex</param>
public void CreatePolygon(int v1, int v2, int v3, int v4);
/// <summary>
/// Create a polygon with 3 vertices(triangle)
/// </summary>
/// <param name="v1">Index of the first vertex</param>
/// <param name="v2">Index of the second vertex</param>
/// <param name="v3">Index of the third vertex</param>
public void CreatePolygon(int v1, int v2, int v3);
示例代码。
Mesh mesh = new Mesh();
mesh.CreatePolygon(new int[]{ 0, 1, 2 }); //The old CreatePolygon needs to create a temporary array for holding the face indices
mesh.CreatePolygon(0, 1, 2); //The new overloads doesn't need extra allocation, and it's optimized internally.
新增的方法创建多边形允许您创建三角形或四边形,而无需分配额外的内存,它在内部进行了高度优化。
删除类Aspose.ThreeD.Formats.GLTFSaveOptions中的旧公共字段PrettyPrint
这已被删除,并由具有相同名称的属性替换,因此使用它的遗留代码不需要修改。
在类Aspose.ThreeD.Formats.GLTFSaveOptions中添加了新属性PrettyPrint
/// <summary>
/// The JSON content of GLTF file is indented for human reading, default value is false
/// </summary>
public bool PrettyPrint { get; set; }
旧的PrettyPrint是一个公共字段,它已经被属性替换为一致。