angle_bisector.py 文件源码

python
阅读 18 收藏 0 点赞 0 评论 0

项目:mesh_doshape_tools 作者: YHOYO 项目源码 文件源码
def execute(self, context):
        oa = bpy.context.active_object
        obj = bpy.context.object
        me = obj.data
        bm = bmesh.from_edit_mesh(me)

        for area in bpy.context.screen.areas:
            if area.type == 'VIEW_3D':
                override = bpy.context.copy()
                viewport = area.regions[4]
                v_m = area.spaces[0].region_3d.view_matrix  #orientation matrix

                vert = [v for v in bm.verts if (v.select == True and v.hide == False)]
                if len(vert) ==1:
                    self.main1(context, self.chboxVert0, self.grados, self.chboxreloj)
                elif len(vert) == 3:
                    self.main3(context, self.chboxVert0, self.chboxVert1, self.chboxVert2,self.grados, self.chboxreloj)
                else:    
                    msg = "select 1 OR 3  vertices"
                    self.report({"WARNING"}, msg)
                    return {'CANCELLED'}  


        return {'FINISHED'}
评论列表
文章目录


问题


面经


文章

微信
公众号

扫码关注公众号