def main3(self, context, chboxVert0, chboxVert1, chboxVert2, grados, chboxreloj):
# variable angulo dependiendo los grados ingresados
angle = grados
obj = bpy.context.object
me = obj.data
bm = bmesh.from_edit_mesh(me)
vertices = [v for v in bm.verts if (v.select==True and not v.hide)]
if len(vertices) != 3:
print("seleccione solo 2 vertices")
#return {'FINISHED'}
else:
v1,v2,v3 = [v for v in bm.verts if (v.select==True and not v.hide)]
if chboxreloj:
angle = -angle
if chboxVert0:
calcularangulos1(v1, v3, v2,angle)
if chboxVert1:
calcularangulos1(v2, v3, v1,angle)
if chboxVert2:
calcularangulos1(v3, v2, v1,angle)
bmesh.update_edit_mesh(me, True)
评论列表
文章目录