免费观看又色又爽又黄的小说免费_美女福利视频国产片_亚洲欧美精品_美国一级大黄大色毛片

用腳本進行三維造型-創新互聯

昨天有幸申請到AnyCAD Part Editor(一個腳本三維建模軟件,官方介紹見此)的內部版本,使用了一下,感覺很小很強大。

成都創新互聯專業IDC數據服務器托管提供商,專業提供成都服務器托管,服務器租用,成都電信服務器托管,成都電信服務器托管,成都多線服務器托管等服務器托管服務。

以下是使用手記。

建立基本的三維基本體

用它建立基本的三維基本體,如:

圓柱

topoShape = theBrepTools:MakeCylinder(Vector3(0,0,0), Vector3(0,0,1), 30, 50, 0) idx = theEntityGroup:AddTopoShape(topoShape)

topoShape = theBrepTools:MakeSphere(Vector3(0,0,0), 100) idx = theEntityGroup:AddTopoShape(topoShape)

長方體

topoShape = theBrepTools:MakeBox(Vector3(0,0,0), Vector3(0,0,1), Vector3(50,50,80))
idx= theEntityGroup:AddTopoShape(topoShape)

圓臺

topoShape = theBrepTools:MakeCone(Vector3(0,0,0), Vector3(0,0,1), 100,50, 50,0)
idx= theEntityGroup:AddTopoShape(topoShape)

等等,還有其他。

二維基本體

-- Circle
topoShape= theBrepTools:MakeCircle(Vector3(0,0,0), 100, Vector3(0,0,1))
theEntityGroup:AddTopoShape(topoShape)
-- Arc
arc= theBrepTools:MakeArc(Vector3(-50,0,0), Vector3(0, 50,0), Vector3(0,0,0))
theEntityGroup:AddTopoShape(arc)
-- Spline
pt1= Vector3(0,0,0)
pt2= Vector3(50,0,0)
pt3= Vector3(100,30,0)
pt4= Vector3(150,100,0)
pts= Vector3List()
pts:Add(pt1)
pts:Add(pt2)
pts:Add(pt3)
pts:Add(pt4)
spline= theBrepTools:MakeSpline(pts)
theEntityGroup:AddTopoShape(spline)

三維特征操作

拉伸

arc = theBrepTools:MakeArc(Vector3(-50,0,0), Vector3(0, 50,0), Vector3(0,0,0)) extrude = theBrepTools:Extrude(arc, 100, Vector3(0,0,1)) idx = theEntityGroup:AddTopoShape(extrude)

掃略

-- Section circle = theBrepTools:MakeCircle(Vector3(0,0,0), 10, Vector3(1,0,0)) edgeGroup = TopoShapeGroup() edgeGroup:Add(circle) wire = theBrepTools:MakeWire(edgeGroup) -- Path pt1 = Vector3(0,0,0) pt2 = Vector3(50,0,0) pt3 = Vector3(100,30,0) pt4 = Vector3(150,100,0) pts = Vector3List() pts:Add(pt1) pts:Add(pt2) pts:Add(pt3) pts:Add(pt4) spline = theBrepTools:MakeSpline(pts) sweep = theBrepTools:Sweep(wire, spline) theEntityGroup:AddTopoShape(sweep)

回轉體

arc = theBrepTools:MakeArc(Vector3(-50,0,0), Vector3(0, 50,0), Vector3(0,0,0)) revol = theBrepTools:Revol(arc, Vector3(0,0,0), Vector3(1,0,1), 300) theEntityGroup:AddTopoShape(revol)

其他等等...

文件導出

這個軟件支持把建立好的模型導出為STL,IGES,STEP,因而可以在SolidWorks,UG里面打開了。

總結

上手有點難度,但掌握了就很好用。

PS:需要的留下email

分享文章:用腳本進行三維造型-創新互聯
文章源于:http://m.newbst.com/article46/dpegeg.html

成都網站建設公司_創新互聯,為您提供微信小程序關鍵詞優化、營銷型網站建設、用戶體驗小程序開發、建站公司

廣告

聲明:本網站發布的內容(圖片、視頻和文字)以用戶投稿、用戶轉載內容為主,如果涉及侵權請盡快告知,我們將會在第一時間刪除。文章觀點不代表本網站立場,如需處理請聯系客服。電話:028-86922220;郵箱:631063699@qq.com。內容未經允許不得轉載,或轉載時需注明來源: 創新互聯

手機網站建設