Aspose.3D for .Net更新至最新版v19.8,在Wavefront OBJ中添加点云支持,增强Aspose.3D的安全性审查,我们一起来看一看新功能详解吧!
Aspose.3D for .NET是功能丰富的游戏软件和计算机辅助设计(CAD)API,用于处理3D文档格式,无需任何3D建模和渲染软件依赖。同时支持Discreet3DS,WavefrontOBJ,FBX(ASCII,二进制),STL(ASCII,二进制),Universal3D,Collada,glTF,GLB,PLY,DirectX,Google Draco文件格式等。开发人员可以轻松地创建,阅读,转换,修改和控制3D文档格式的内容。
Aspose.3D for .Net更新至最新版v19.8,在Wavefront OBJ中添加点云支持,增强Aspose.3D的安全性审查,我们一起来看一看新功能详解吧!>>欢迎下载Aspose.3D for .NET v19.8体验
新增与改善
key | 概述 | 类别 |
---|---|---|
THREEDNET-528 | 在Wavefront OBJ中添加点云支持 | 新功能 |
THREEDNET-531 | Aspose.3D的安全性审查 | 增强 |
THREEDNET-536 | DRC到STL转换失败 | Bug修复 |
THREEDNET-537 | 将PLY转换为GLB时出现问题 | Bug修复 |
THREEDNET-539 | 大点云可能会生成不正确的数据 | Bug修复 |
公共API的更改
▲在Aspose.Three.Formats.Obj类SaveOptions类中添加了新属性Point Cloud
////// Gets or sets the flag whether the exporter should export the scene as point cloud(without topological structure), default value is false///public bool PointCloud{ get;set;}
用于生成obj格式的Sphere点云的示例代码:
var scene = new Scene(new Sphere());scene.Save(@"sphere.obj", new ObjSaveOptions() { PointCloud = true });
▲添加了新方法CreatePolygon Aspose.ThreeD.Entities.Mesh
////// Create a polygon with 4 vertices(quad)//////Index of the first vertex///Index of the second vertex///Index of the third vertex///Index of the fourth vertexpublic void CreatePolygon(int v1, int v2, int v3, int v4);////// Create a polygon with 3 vertices(triangle)//////Index of the first vertex///Index of the second vertex///Index of the third vertexpublic 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 indicesmesh.CreatePolygon(0, 1, 2); //The new overloads doesn't need extra allocation, and it's optimized internally.
新添加的方法 CreatePolygon 允许您创建三角形或四边形而无需分配额外的内存,它在内部进行了高度优化。
▲在Aspose.ThreeD.Formats.GLTFSaveOptions类中添加了新属性PrettyPrint
////// The JSON content of GLTF file is indented for human reading, default value is false///public bool PrettyPrint { get; set; }
*Aspose.3D现已加入“8月省钱式嗨购”,满额即送office 365正版授权,想要购买Aspose.3D正版授权的朋友可咨询在线客服了解详情哦~
ASPOSE技术交流QQ群()已开通,各类资源及时分享,欢迎交流讨论!

标签:
声明:本站部分文章及图片源自用户投稿,如本站任何资料有侵权请您尽早请联系jinwei@zod.com.cn进行处理,非常感谢!