pythonocc例子11-形体求交Common

OOo,TeX,KO,ABI,GIMP,Picasa,ProE,QCAD,Inkscape,Kicad,Eagle
回复
shirazbj
帖子: 333
注册时间: 2010-01-30 18:38
送出感谢: 0
接收感谢: 0

pythonocc例子11-形体求交Common

#1

帖子 shirazbj » 2010-07-04 20:39

from OCC.Display.SimpleGui import *
from OCC.BRepPrimAPI import *
from OCC.BRepAlgoAPI import *
from OCC.gp import *
display, start_display, add_menu, add_function_to_menu = init_display()
sphere1 = BRepPrimAPI_MakeSphere(gp_Pnt(100,20,20),70).Shape()
sphere2 = BRepPrimAPI_MakeSphere(gp_Pnt(150,20,20),80).Shape()
aShape = BRepAlgoAPI_Common(sphere1,sphere2).Shape()
display.DisplayShape(aShape)
start_display()
附件
common.gif
免费NanoCAD=免费DraftSight+可API编程(用.net或者vbs和java脚本)=白白 AutoCAD
http://nanocad.com/
回复

回到 “办公、图像、机械电子设计等”