def main(self, context, chboxVert0, chboxVert1, chboxVert2, cortes):
# variable angulo dependiendo los grados ingresados
secciones = cortes
direccion = 1
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 3 vertices")
#return {'FINISHED'}
else:
vv1,vv2,vv3 = [v for v in bm.verts if (v.select==True and not v.hide)]
if chboxVert0:
calcularangulos(vv1, vv2, vv3,secciones,direccion)
if chboxVert1:
calcularangulos(vv2, vv3, vv1,secciones,direccion)
if chboxVert2:
calcularangulos(vv3, vv1, vv2,secciones,direccion)
bmesh.update_edit_mesh(me, True)
评论列表
文章目录