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迎来了2020年5月更新,改进OAP查询,添加对Material / AssetInfo / Transform的支持,不支持使用LZMA压缩的JT文件,具体更新如下: >>点击文末“了解更多”下载Aspose.3D v20.5
具体更新内容
公共API的更改
▲从Aspose.ThreeD.Node更改SelectSingleObject / SelectObjects的签名
//public Aspose.ThreeD.A3DObject SelectSingleObject(string path)public object SelectSingleObject(string path) //public System.Collections.Generic.List<Aspose.ThreeD.A3DObject> SelectObjects(string path)public System.Collections.Generic.List<object> SelectObjects(string path)
示例代码
var scene = new Scene(new Torus());foreach (BoundingBox bbox in scene.RootNode.SelectObjects("//")){ Console.WriteLine($"Found a bbox : {bbox}");}
这是THREEDNET-502引入的,它可以查询更深的对象,例如Material / Texture / AssetInfo / Transform / VertexElements。
修正了一个错字
Aspose.ThreeD.Profiles.HShape
//Old property://public double OveralDepth{ get;set;} //New propertypublic double OverallDepth{ get;set;}
如果您有任何疑问或需求,请随时加入Aspose技术交流群(642018183),我们很高兴为您提供查询和咨询。
声明:本站部分文章及图片源自用户投稿,如本站任何资料有侵权请您尽早请联系jinwei@zod.com.cn进行处理,非常感谢!