def main(self, context, chboxVert0, chboxVert1, chboxVert2):
obj = bpy.context.object
me = obj.data
bm = bmesh.from_edit_mesh(me)
vertices = [v for v in bm.verts if (v.select and not v.hide)]
if not len(vertices) == 3:
msg = "select ONLY 3 vertices"
self.report({"WARNING"}, msg)
return {'CANCELLED'}
v1,v2,v3 = [v for v in vertices]
if chboxVert0:
corte(bm, v1,v2,v3)
if chboxVert1:
corte(bm, v2,v1,v3)
if chboxVert2:
corte(bm, v3,v1,v2)
verticeje = v3.co
else:
print("Select 1 option")
bmesh.update_edit_mesh(me, True)
perpendicular_orthocenter.py 文件源码
python
阅读 19
收藏 0
点赞 0
评论 0
评论列表
文章目录