栏目分类:
子分类:
返回
名师互学网用户登录
快速导航关闭
当前搜索
当前分类
子分类
实用工具
热门搜索
名师互学网 > IT > 软件开发 > 后端开发 > Python

pythonocc 拉伸

Python 更新时间: 发布时间: IT归档 最新发布 模块sitemap 名妆网 法律咨询 聚返吧 英语巴士网 伯小乐 网商动力

pythonocc 拉伸

def make_xian():
 # Circle GC_MakeCircle(gp_Ax2 (gp_Pnt(0,0,5),gp_Dir (0,0,-1)),8).Value()
 # Circle GC_MakeCircle(gp_Ax2(gp_Pnt(0, 0, 5), gp_Dir(0, 0, -1)), 8)
 E11 BRepBuilderAPI_MakeEdge(gp_Pnt(40., 0., 0.), gp_Pnt(82.5, 25., 0.)).Edge()
 E12 BRepBuilderAPI_MakeEdge(gp_Pnt(82.5, 25., 0.), gp_Pnt(42.5, 93., 0.)).Edge()
 E13 BRepBuilderAPI_MakeEdge(gp_Pnt(42.5, 93., 0.), gp_Pnt(0., 68., 0.)).Edge()
 E14 BRepBuilderAPI_MakeEdge(gp_Pnt(0., 68., 0.), gp_Pnt(40., 0., 0.)).Edge()
 #点----线---面--体
 shape_wire BRepBuilderAPI_MakeWire(E11, E12, E13, E14)
 shape_face BRepBuilderAPI_MakeFace(shape_wire.Wire()).Face()
 #旋转拉伸
 shape BRepPrimAPI_MakeRevol(shape_face, gp_Ax1(gp_Pnt(0, 0, 0), gp_Dir(1, 1, 1)))
 #拉升立方体--封闭曲线拉伸
 # shape BRepPrimAPI_MakePrism(shape_face, gp_Vec(0., 0, 50))
 # display.DisplayShape(shape_wire.Shape(), update True)
 display.DisplayShape(shape.Shape(), update True)
转载请注明:文章转载自 www.mshxw.com
本文地址:https://www.mshxw.com/it/266827.html
我们一直用心在做
关于我们 文章归档 网站地图 联系我们

版权所有 (c)2021-2022 MSHXW.COM

ICP备案号:晋ICP备2021003244-6号