翻譯|產(chǎn)品更新|編輯:李顯亮|2019-07-05 14:58:20.753|閱讀 250 次
概述:Aspose.3D for .NET是一個(gè)功能豐富的游戲軟件和計(jì)算機(jī)輔助設(shè)計(jì)(CAD)API,用于處理3D文檔格式,Aspose.3D for .NET更新至v19.6,加強(qiáng)了對(duì)氣缸的創(chuàng)建!
# 界面/圖表報(bào)表/文檔/IDE等千款熱門軟控件火熱銷售中 >>
Aspose.3D for .NET是一個(gè)功能豐富的游戲軟件和計(jì)算機(jī)輔助設(shè)計(jì)(CAD)API,用于處理3D文檔格式,無需任何3D建模和渲染軟件依賴。支持Discreet3DS、WavefrontOBJ、FBX(ASCII,二進(jìn)制)、STL(ASCII,二進(jìn)制)、Universal3D、Collada、glTF、GLB、PLY、DirectX、Google Draco文件格式等。
Aspose.3D for .NET更新至v19.6,加強(qiáng)了對(duì)氣缸的創(chuàng)建!>>下載Aspose.3D for .NET最新試用版
key | 概述 | 類別 |
---|---|---|
THREEDNET-511 | 增強(qiáng)圓筒的創(chuàng)造 | 新功能 |
THREEDNET-507 | 打開RVM文件時(shí)丟失一些材料 | Bug |
THREEDNET-508 | 系統(tǒng)可能無法在Vulkan渲染器中分配描述符集 | Bug |
////// Gets or sets the vertices transformation offset of the top side. ///public Vector3 OffsetTop { get; set; }
////// Gets or sets the vertices transformation offset of the bottom side. ///public Vector3 OffsetBottom { get; set; }
生成帶有自定義偏移量的圓柱體的示例代碼:
Scene scene = new Scene(); var fan = new Cylinder(2, 2, 10, 20, 1, false); fan.OffsetTop = new Vector3(5, 3, 0); scene.RootNode.CreateChildNode(fan).Transform.Translation = new Vector3(10, 0, 0); var nonfan = new Cylinder(2, 2, 10, 20, 1, false); scene.RootNode.CreateChildNode(nonfan); scene.Save("test.obj", FileFormat.WavefrontOBJ);
左邊的一個(gè)將OffsetTop設(shè)置為(5,3,0),很容易看到頂蓋已經(jīng)移動(dòng),整個(gè)軀干也受到影響。
////// Gets or sets whether to generate the fan-style cylinder when the ThetaLength is less than 2*PI, otherwise the model will not be cut. ///public bool GenerateFanCylinder { get;set; }
用于生成風(fēng)扇式氣缸和非風(fēng)扇式氣缸的示例代碼:
Scene scene = new Scene(); var fan = new Cylinder(2, 2, 10, 20, 1, false); fan.GenerateFanCylinder = true; fan.ThetaLength = MathUtils.ToRadian(270); scene.RootNode.CreateChildNode(fan).Transform.Translation = new Vector3(10, 0, 0); var nonfan = new Cylinder(2, 2, 10, 20, 1, false); nonfan.GenerateFanCylinder = false; nonfan.ThetaLength = MathUtils.ToRadian(270); scene.RootNode.CreateChildNode(nonfan); scene.Save("test.obj", FileFormat.WavefrontOBJ);
左側(cè)圓柱體具有GenerateFanCylinder = false,右側(cè)圓柱體具有GenerateFanCylinder = true。
////// Gets or sets of the shear transform of the top side, vector stores the (x-axis, z-axis) shear value that measured in radian, default value is (0, 0) ///public Vector2 ShearTop { get; set; }
////// Gets or sets of the shear transform of the bottom side, vector stores the (x-axis, z-axis) shear value that measured in radian, default value is (0, 0) ///public Vector2 ShearBottom { get; set; }
顯示ShearBottom(ShearTop)用法的示例代碼:
Scene scene = new Scene(); var cylinder1 = new Cylinder(2, 2, 10, 20, 1, false); cylinder1.ShearBottom = new Vector2(0, 0.83);// shear 47.5deg in xy plane(z-axis) scene.RootNode.CreateChildNode(cylinder1).Transform.Translation = new Vector3(10, 0, 0); var cylinder2 = new Cylinder(2, 2, 10, 20, 1, false); scene.RootNode.CreateChildNode(cylinder2); scene.Save("test.obj", FileFormat.WavefrontOBJ);
左邊的圓柱體為剪切底部到(0,0.83),而右邊的圓柱體為序數(shù)圓柱體。
歡迎加入ASPOSE技術(shù)交流QQ群(642018183),各類資源及時(shí)分享,歡迎交流討論!
本站文章除注明轉(zhuǎn)載外,均為本站原創(chuàng)或翻譯。歡迎任何形式的轉(zhuǎn)載,但請(qǐng)務(wù)必注明出處、不得修改原文相關(guān)鏈接,如果存在內(nèi)容上的異議請(qǐng)郵件反饋至chenjj@fc6vip.cn
文章轉(zhuǎn)載自: