原創(chuàng)|產(chǎn)品更新|編輯:李顯亮|2019-08-27 13:37:21.667|閱讀 245 次
概述:在最新版的Aspose.3D for Java v19.8中,新增在Wavefront OBJ中添加點(diǎn)云支持,增強(qiáng)Aspose.3D的安全性審查,修復(fù)DRC到STL轉(zhuǎn)換失敗等多項(xiàng)問題,歡迎下載體驗(yàn)。
# 界面/圖表報(bào)表/文檔/IDE等千款熱門軟控件火熱銷售中 >>
Aspose.3D for Java是獨(dú)立的Gameware和計(jì)算機(jī)輔助設(shè)計(jì)(CAD)API,用于處理3D文件。同時支持大多數(shù)流行的3D文件格式,應(yīng)用程序可以輕松創(chuàng)建,讀取,轉(zhuǎn)換和修改3D文件。此外,API還可以幫助開發(fā)人員在游戲中建模和創(chuàng)建大量世界,為設(shè)計(jì)可視化創(chuàng)建出色的場景,參與虛擬現(xiàn)實(shí)體驗(yàn),將動畫屬性添加到3D場景文件,使用3D變換格式化元素等等。
在最新版的Aspose.3D for Java v19.8中,新增在Wavefront OBJ中添加點(diǎn)云支持,增強(qiáng)Aspose.3D的安全性審查,修復(fù)DRC到STL轉(zhuǎn)換失敗等多項(xiàng)問題,下面我們用示例來演示該功能的使用和工作原理。>>歡迎下載Aspose.3D for Java v19.8體驗(yàn)
key | 概述 | 類別 |
---|---|---|
THREEDNET-528 | 在Wavefront OBJ中添加點(diǎn)云支持 | 新功能 |
THREEDNET-531 | Aspose.3D的安全性審查 | 增強(qiáng) |
THREEDNET-536 | DRC到STL轉(zhuǎn)換失敗 | Bug修復(fù) |
THREEDNET-537 | 將PLY轉(zhuǎn)換為GLB時出現(xiàn)問題 | Bug修復(fù) |
THREEDNET-539 | 大點(diǎn)云可能會生成不正確的數(shù)據(jù) | Bug修復(fù) |
/** * Gets the flag whether the exporter should export the scene as point cloud(without topological structure), default value is false */ public boolean getPointCloud(); /** * Sets the flag whether the exporter should export the scene as point cloud(without topological structure), default value is false * @param value New value */ public void setPointCloud(boolean value);
示例代碼生成一個obj格式的球面點(diǎn)云。
Scene scene = new Scene(new Sphere()); ObjSaveOptions opt = new ObjSaveOptions(); opt.setPointCloud(true); scene.save("sphere.obj", opt);
/** * Create a polygon with 4 vertices(quad) * @param v1 Index of the first vertex * @param v2 Index of the second vertex * @param v3 Index of the third vertex * @param v4 Index of the fourth vertex */ public void createPolygon(int v1, int v2, int v3, int v4); /** * Create a polygon with 3 vertices(triangle) * @param v1 Index of the first vertex * @param v2 Index of the second vertex * @param v3 Index of the third vertex */ 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.
/** * The JSON content of GLTF file is indented for human reading, default value is false */ public boolean getPrettyPrint(); /** * The JSON content of GLTF file is indented for human reading, default value is false * @param value New value */ public void setPrettyPrint(boolean value);
舊的prettyPrint是一個公共領(lǐng)域,它已被財(cái)產(chǎn)取代以保持一致。示例代碼:
Scene scene = new Scene(new Sphere()); GLTFSaveOptions opt = new GLTFSaveOptions(FileFormat.GLTF2); //opt.prettyPrint = true; //Old code opt.setPrettyPrint(true); //Use setter to change this configuration. scene.save("sphere.gltf", opt);
*Aspose.3D現(xiàn)已加入“8月省錢式嗨購”,滿額即送office 365正版授權(quán),想要購買Aspose.3D正版授權(quán)的朋友可了解詳情哦~
ASPOSE技術(shù)交流QQ群(642018183)已開通,各類資源及時分享,歡迎交流討論!
掃描關(guān)注“慧聚IT”微信公眾號,及時獲取更多產(chǎn)品最新動態(tài)及最新資訊
本站文章除注明轉(zhuǎn)載外,均為本站原創(chuàng)或翻譯。歡迎任何形式的轉(zhuǎn)載,但請務(wù)必注明出處、不得修改原文相關(guān)鏈接,如果存在內(nèi)容上的異議請郵件反饋至chenjj@fc6vip.cn