Fixed some line styles in estucheria

This commit is contained in:
leyghisbb 2020-12-12 23:06:08 +01:00
parent ef06056348
commit 67b8998c61
7 changed files with 141 additions and 211 deletions

View File

@ -154,96 +154,84 @@ class GenerarEstuche(inkex.EffectExtension):
line = group.add(inkex.PathElement(id=id_caja + '-perfil-hendidos-1')) line = group.add(inkex.PathElement(id=id_caja + '-perfil-hendidos-1'))
line.path = [ line.path = [
['M', [0,0]], ['M', [0,0]],
['l', [0,alto_caja]], ['l', [0,alto_caja]]
['Z', []]
] ]
line.style = estilo_linea_hendidos line.style = estilo_linea_hendidos
line = group.add(inkex.PathElement(id=id_caja + '-perfil-hendidos-2')) line = group.add(inkex.PathElement(id=id_caja + '-perfil-hendidos-2'))
line.path = [ line.path = [
['M', [ancho_caja,0]], ['M', [ancho_caja,0]],
['l', [0,alto_caja]], ['l', [0,alto_caja]]
['Z', []]
] ]
line.style = estilo_linea_hendidos line.style = estilo_linea_hendidos
line = group.add(inkex.PathElement(id=id_caja + '-perfil-hendidos-3')) line = group.add(inkex.PathElement(id=id_caja + '-perfil-hendidos-3'))
line.path = [ line.path = [
['M', [ancho_caja+largo_caja,0]], ['M', [ancho_caja+largo_caja,0]],
['l', [0,alto_caja]], ['l', [0,alto_caja]]
['Z', []]
] ]
line.style = estilo_linea_hendidos line.style = estilo_linea_hendidos
line = group.add(inkex.PathElement(id=id_caja + '-perfil-hendidos-4')) line = group.add(inkex.PathElement(id=id_caja + '-perfil-hendidos-4'))
line.path = [ line.path = [
['M', [ancho_caja+ancho_caja+largo_caja,0]], ['M', [ancho_caja+ancho_caja+largo_caja,0]],
['l', [0,alto_caja]], ['l', [0,alto_caja]]
['Z', []]
] ]
line.style = estilo_linea_hendidos line.style = estilo_linea_hendidos
line = group.add(inkex.PathElement(id=id_caja + '-perfil-hendidos-5')) line = group.add(inkex.PathElement(id=id_caja + '-perfil-hendidos-5'))
line.path = [ line.path = [
['M', [ancho_caja,0]], ['M', [ancho_caja,0]],
['l', [largo_caja,0]], ['l', [largo_caja,0]]
['Z', []]
] ]
line.style = estilo_linea_hendidos line.style = estilo_linea_hendidos
line = group.add(inkex.PathElement(id=id_caja + '-perfil-hendidos-6')) line = group.add(inkex.PathElement(id=id_caja + '-perfil-hendidos-6'))
line.path = [ line.path = [
['M', [0,0]], ['M', [0,0]],
['l', [ancho_caja,0]], ['l', [ancho_caja,0]]
['Z', []]
] ]
line.style = estilo_linea_hendidos line.style = estilo_linea_hendidos
line = group.add(inkex.PathElement(id=id_caja + '-perfil-hendidos-7')) line = group.add(inkex.PathElement(id=id_caja + '-perfil-hendidos-7'))
line.path = [ line.path = [
['M', [(ancho_caja*2)+largo_caja,0]], ['M', [(ancho_caja*2)+largo_caja,0]],
['l', [largo_caja,0]], ['l', [largo_caja,0]]
['Z', []]
] ]
line.style = estilo_linea_hendidos line.style = estilo_linea_hendidos
line = group.add(inkex.PathElement(id=id_caja + '-perfil-hendidos-8')) line = group.add(inkex.PathElement(id=id_caja + '-perfil-hendidos-8'))
line.path = [ line.path = [
['M', [0,alto_caja]], ['M', [0,alto_caja]],
['l', [ancho_caja,0]], ['l', [ancho_caja,0]]
['Z', []]
] ]
line.style = estilo_linea_hendidos line.style = estilo_linea_hendidos
line = group.add(inkex.PathElement(id=id_caja + '-perfil-hendidos-9')) line = group.add(inkex.PathElement(id=id_caja + '-perfil-hendidos-9'))
line.path = [ line.path = [
['M', [ancho_caja,alto_caja]], ['M', [ancho_caja,alto_caja]],
['l', [largo_caja,0]], ['l', [largo_caja,0]]
['Z', []]
] ]
line.style = estilo_linea_hendidos line.style = estilo_linea_hendidos
line = group.add(inkex.PathElement(id=id_caja + '-perfil-hendidos-10')) line = group.add(inkex.PathElement(id=id_caja + '-perfil-hendidos-10'))
line.path = [ line.path = [
['M', [(ancho_caja*2)+largo_caja,alto_caja]], ['M', [(ancho_caja*2)+largo_caja,alto_caja]],
['l', [largo_caja,0]], ['l', [largo_caja,0]]
['Z', []]
] ]
line.style = estilo_linea_hendidos line.style = estilo_linea_hendidos
line = group.add(inkex.PathElement(id=id_caja + '-perfil-hendidos-11')) line = group.add(inkex.PathElement(id=id_caja + '-perfil-hendidos-11'))
line.path = [ line.path = [
['M', [0,0-(largo_caja)]], ['M', [0,0-(largo_caja)]],
['l', [ancho_caja,0]], ['l', [ancho_caja,0]]
['Z', []]
] ]
line.style = estilo_linea_hendidos line.style = estilo_linea_hendidos
line = group.add(inkex.PathElement(id=id_caja + '-perfil-hendidos-12')) line = group.add(inkex.PathElement(id=id_caja + '-perfil-hendidos-12'))
line.path = [ line.path = [
['M', [0,alto_caja+largo_caja]], ['M', [0,alto_caja+largo_caja]],
['l', [ancho_caja,0]], ['l', [ancho_caja,0]]
['Z', []]
] ]
line.style = estilo_linea_hendidos line.style = estilo_linea_hendidos

View File

@ -155,88 +155,77 @@ class AutomaticBottomCase(inkex.EffectExtension):
line = group.add(inkex.PathElement(id=box_id + '-profile-splits-1')) line = group.add(inkex.PathElement(id=box_id + '-profile-splits-1'))
line.path = [ line.path = [
['M', [0,0]], ['M', [0,0]],
['l', [0,box_height]], ['l', [0,box_height]]
['Z', []]
] ]
line.style = cleft_line_style line.style = cleft_line_style
line = group.add(inkex.PathElement(id=box_id + '-profile-splits-2')) line = group.add(inkex.PathElement(id=box_id + '-profile-splits-2'))
line.path = [ line.path = [
['M', [box_width,0]], ['M', [box_width,0]],
['l', [0,box_height]], ['l', [0,box_height]]
['Z', []]
] ]
line.style = cleft_line_style line.style = cleft_line_style
line = group.add(inkex.PathElement(id=box_id + '-profile-splits-3')) line = group.add(inkex.PathElement(id=box_id + '-profile-splits-3'))
line.path = [ line.path = [
['M', [box_width+box_length,0]], ['M', [box_width+box_length,0]],
['l', [0,box_height]], ['l', [0,box_height]]
['Z', []]
] ]
line.style = cleft_line_style line.style = cleft_line_style
line = group.add(inkex.PathElement(id=box_id + '-profile-splits-4')) line = group.add(inkex.PathElement(id=box_id + '-profile-splits-4'))
line.path = [ line.path = [
['M', [box_width+box_width+box_length,0]], ['M', [box_width+box_width+box_length,0]],
['l', [0,box_height]], ['l', [0,box_height]]
['Z', []]
] ]
line.style = cleft_line_style line.style = cleft_line_style
line = group.add(inkex.PathElement(id=box_id + '-profile-splits-5')) line = group.add(inkex.PathElement(id=box_id + '-profile-splits-5'))
line.path = [ line.path = [
['M', [0,0]], ['M', [0,0]],
['l', [box_width,0]], ['l', [box_width,0]]
['Z', []]
] ]
line.style = cleft_line_style line.style = cleft_line_style
line = group.add(inkex.PathElement(id=box_id + '-profile-splits-6')) line = group.add(inkex.PathElement(id=box_id + '-profile-splits-6'))
line.path = [ line.path = [
['M', [0,box_height]], ['M', [0,box_height]],
['l', [((box_length+box_width)*2),0]], ['l', [((box_length+box_width)*2),0]]
['Z', []]
] ]
line.style = cleft_line_style line.style = cleft_line_style
line = group.add(inkex.PathElement(id=box_id + '-profile-splits-7')) line = group.add(inkex.PathElement(id=box_id + '-profile-splits-7'))
line.path = [ line.path = [
['M', [box_width,0]], ['M', [box_width,0]],
['l', [box_length,0]], ['l', [box_length,0]]
['Z', []]
] ]
line.style = cleft_line_style line.style = cleft_line_style
line = group.add(inkex.PathElement(id=box_id + '-profile-splits-8')) line = group.add(inkex.PathElement(id=box_id + '-profile-splits-8'))
line.path = [ line.path = [
['M', [box_length+box_width*2,0]], ['M', [box_length+box_width*2,0]],
['l', [box_length,0]], ['l', [box_length,0]]
['Z', []]
] ]
line.style = cleft_line_style line.style = cleft_line_style
line = group.add(inkex.PathElement(id=box_id + '-profile-splits-9')) line = group.add(inkex.PathElement(id=box_id + '-profile-splits-9'))
line.path = [ line.path = [
['M', [0,0-(box_length)]], ['M', [0,0-(box_length)]],
['l', [box_width,0]], ['l', [box_width,0]]
['Z', []]
] ]
line.style = cleft_line_style line.style = cleft_line_style
line = group.add(inkex.PathElement(id=box_id + '-profile-drill-1')) line = group.add(inkex.PathElement(id=box_id + '-profile-drill-1'))
line.path = [ line.path = [
['M', [box_width-measure2_side_blind,box_height+measure2_side_blind]], ['M', [box_width-measure2_side_blind,box_height+measure2_side_blind]],
['l', [0-((box_length*0.5)),(box_length*0.5)]], ['l', [0-((box_length*0.5)),(box_length*0.5)]]
['Z', []]
] ]
line.style = line_style_drills line.style = line_style_drills
line = group.add(inkex.PathElement(id=box_id + '-profile-drill-2')) line = group.add(inkex.PathElement(id=box_id + '-profile-drill-2'))
line.path = [ line.path = [
['M', [((box_width*2)+box_length)-measure2_side_blind,box_height+measure2_side_blind]], ['M', [((box_width*2)+box_length)-measure2_side_blind,box_height+measure2_side_blind]],
['l', [0-((box_length*0.5)),(box_length*0.5)]], ['l', [0-((box_length*0.5)),(box_length*0.5)]]
['Z', []]
] ]
line.style = line_style_drills line.style = line_style_drills

View File

@ -105,64 +105,56 @@ class GenerarEstuche(inkex.EffectExtension):
line = group.add(inkex.PathElement(id=id_caja + '-perfil-hendidos-1')) line = group.add(inkex.PathElement(id=id_caja + '-perfil-hendidos-1'))
line.path = [ line.path = [
['M', [alto_caja,0]], ['M', [alto_caja,0]],
['l', [0,largo_caja+(alto_caja*2)]], ['l', [0,largo_caja+(alto_caja*2)]]
['Z', []]
] ]
line.style = estilo_linea_hendidos line.style = estilo_linea_hendidos
line = group.add(inkex.PathElement(id=id_caja + '-perfil-hendidos-2')) line = group.add(inkex.PathElement(id=id_caja + '-perfil-hendidos-2'))
line.path = [ line.path = [
['M', [ancho_caja+alto_caja,0]], ['M', [ancho_caja+alto_caja,0]],
['l', [0,largo_caja+(alto_caja*2)]], ['l', [0,largo_caja+(alto_caja*2)]]
['Z', []]
] ]
line.style = estilo_linea_hendidos line.style = estilo_linea_hendidos
line = group.add(inkex.PathElement(id=id_caja + '-perfil-hendidos-3')) line = group.add(inkex.PathElement(id=id_caja + '-perfil-hendidos-3'))
line.path = [ line.path = [
['M', [alto_caja,alto_caja]], ['M', [alto_caja,alto_caja]],
['l', [ancho_caja,0]], ['l', [ancho_caja,0]]
['Z', []]
] ]
line.style = estilo_linea_hendidos line.style = estilo_linea_hendidos
line = group.add(inkex.PathElement(id=id_caja + '-perfil-hendidos-4')) line = group.add(inkex.PathElement(id=id_caja + '-perfil-hendidos-4'))
line.path = [ line.path = [
['M', [alto_caja,alto_caja+largo_caja]], ['M', [alto_caja,alto_caja+largo_caja]],
['l', [ancho_caja,0]], ['l', [ancho_caja,0]]
['Z', []]
] ]
line.style = estilo_linea_hendidos line.style = estilo_linea_hendidos
line = group.add(inkex.PathElement(id=id_caja + '-perfil-hendidos-5')) line = group.add(inkex.PathElement(id=id_caja + '-perfil-hendidos-5'))
line.path = [ line.path = [
['M', [alto_caja,alto_caja]], ['M', [alto_caja,alto_caja]],
['l', [0-alto_caja,alto_caja]], ['l', [0-alto_caja,alto_caja]]
['Z', []]
] ]
line.style = estilo_linea_hendidos line.style = estilo_linea_hendidos
line = group.add(inkex.PathElement(id=id_caja + '-perfil-hendidos-6')) line = group.add(inkex.PathElement(id=id_caja + '-perfil-hendidos-6'))
line.path = [ line.path = [
['M', [alto_caja+ancho_caja,alto_caja]], ['M', [alto_caja+ancho_caja,alto_caja]],
['l', [alto_caja,alto_caja]], ['l', [alto_caja,alto_caja]]
['Z', []]
] ]
line.style = estilo_linea_hendidos line.style = estilo_linea_hendidos
line = group.add(inkex.PathElement(id=id_caja + '-perfil-hendidos-7')) line = group.add(inkex.PathElement(id=id_caja + '-perfil-hendidos-7'))
line.path = [ line.path = [
['M', [alto_caja+ancho_caja,alto_caja+largo_caja]], ['M', [alto_caja+ancho_caja,alto_caja+largo_caja]],
['l', [alto_caja,0-alto_caja]], ['l', [alto_caja,0-alto_caja]]
['Z', []]
] ]
line.style = estilo_linea_hendidos line.style = estilo_linea_hendidos
line = group.add(inkex.PathElement(id=id_caja + '-perfil-hendidos-8')) line = group.add(inkex.PathElement(id=id_caja + '-perfil-hendidos-8'))
line.path = [ line.path = [
['M', [alto_caja,alto_caja+largo_caja]], ['M', [alto_caja,alto_caja+largo_caja]],
['l', [0-alto_caja,0-alto_caja]], ['l', [0-alto_caja,0-alto_caja]]
['Z', []]
] ]
line.style = estilo_linea_hendidos line.style = estilo_linea_hendidos

View File

@ -126,112 +126,98 @@ class GenerateBox(inkex.EffectExtension):
line = group.add(inkex.PathElement(id=id_box + '-profile-splits-1')) line = group.add(inkex.PathElement(id=id_box + '-profile-splits-1'))
line.path = [ line.path = [
['M', [0,eyelash_width]], ['M', [0,eyelash_width]],
['l', [box_width,0]], ['l', [box_width,0]]
['Z', []]
] ]
line.style = cleft_line_style line.style = cleft_line_style
line = group.add(inkex.PathElement(id=id_box + '-profile-splits-2')) line = group.add(inkex.PathElement(id=id_box + '-profile-splits-2'))
line.path = [ line.path = [
['M', [0,(box_height+eyelash_width)]], ['M', [0,(box_height+eyelash_width)]],
['l', [box_width,0]], ['l', [box_width,0]]
['Z', []]
] ]
line.style = cleft_line_style line.style = cleft_line_style
line = group.add(inkex.PathElement(id=id_box + '-profile-splits-3')) line = group.add(inkex.PathElement(id=id_box + '-profile-splits-3'))
line.path = [ line.path = [
['M', [0-box_height,((box_height*2)+eyelash_width)]], ['M', [0-box_height,((box_height*2)+eyelash_width)]],
['l', [box_width+(box_height*2),0]], ['l', [box_width+(box_height*2),0]]
['Z', []]
] ]
line.style = cleft_line_style line.style = cleft_line_style
line = group.add(inkex.PathElement(id=id_box + '-profile-splits-4')) line = group.add(inkex.PathElement(id=id_box + '-profile-splits-4'))
line.path = [ line.path = [
['M', [0-box_height,(((box_height*2)+eyelash_width)+box_length)]], ['M', [0-box_height,(((box_height*2)+eyelash_width)+box_length)]],
['l', [box_width+(box_height*2),0]], ['l', [box_width+(box_height*2),0]]
['Z', []]
] ]
line.style = cleft_line_style line.style = cleft_line_style
line = group.add(inkex.PathElement(id=id_box + '-profile-splits-5')) line = group.add(inkex.PathElement(id=id_box + '-profile-splits-5'))
line.path = [ line.path = [
['M', [0,(box_height*3)+box_length+eyelash_width]], ['M', [0,(box_height*3)+box_length+eyelash_width]],
['l', [box_width,0]], ['l', [box_width,0]]
['Z', []]
] ]
line.style = cleft_line_style line.style = cleft_line_style
line = group.add(inkex.PathElement(id=id_box + '-profile-splits-6')) line = group.add(inkex.PathElement(id=id_box + '-profile-splits-6'))
line.path = [ line.path = [
['M', [0,(box_height*4)+box_length+eyelash_width]], ['M', [0,(box_height*4)+box_length+eyelash_width]],
['l', [box_width,0]], ['l', [box_width,0]]
['Z', []]
] ]
line.style = cleft_line_style line.style = cleft_line_style
line = group.add(inkex.PathElement(id=id_box + '-profile-splits-7')) line = group.add(inkex.PathElement(id=id_box + '-profile-splits-7'))
line.path = [ line.path = [
['M', [0,eyelash_width]], ['M', [0,eyelash_width]],
['l', [0,box_length+(box_height*4)]], ['l', [0,box_length+(box_height*4)]]
['Z', []]
] ]
line.style = cleft_line_style line.style = cleft_line_style
line = group.add(inkex.PathElement(id=id_box + '-profile-splits-8')) line = group.add(inkex.PathElement(id=id_box + '-profile-splits-8'))
line.path = [ line.path = [
['M', [box_width,eyelash_width]], ['M', [box_width,eyelash_width]],
['l', [0,box_length+(box_height*4)]], ['l', [0,box_length+(box_height*4)]]
['Z', []]
] ]
line.style = cleft_line_style line.style = cleft_line_style
line = group.add(inkex.PathElement(id=id_box + '-profile-splits-9')) line = group.add(inkex.PathElement(id=id_box + '-profile-splits-9'))
line.path = [ line.path = [
['M', [0-box_height,eyelash_width+(box_height*2)]], ['M', [0-box_height,eyelash_width+(box_height*2)]],
['l', [0,box_length]], ['l', [0,box_length]]
['Z', []]
] ]
line.style = cleft_line_style line.style = cleft_line_style
line = group.add(inkex.PathElement(id=id_box + '-profile-splits-10')) line = group.add(inkex.PathElement(id=id_box + '-profile-splits-10'))
line.path = [ line.path = [
['M', [box_width+box_height,eyelash_width+(box_height*2)]], ['M', [box_width+box_height,eyelash_width+(box_height*2)]],
['l', [0,box_length]], ['l', [0,box_length]]
['Z', []]
] ]
line.style = cleft_line_style line.style = cleft_line_style
line = group.add(inkex.PathElement(id=id_box + '-profile-splits-11')) line = group.add(inkex.PathElement(id=id_box + '-profile-splits-11'))
line.path = [ line.path = [
['M', [0,eyelash_width+(box_height*2)]], ['M', [0,eyelash_width+(box_height*2)]],
['l', [0-(box_height-eyelash_measure3),0-(box_height-eyelash_measure3)]], ['l', [0-(box_height-eyelash_measure3),0-(box_height-eyelash_measure3)]]
['Z', []]
] ]
line.style = cleft_line_style line.style = cleft_line_style
line = group.add(inkex.PathElement(id=id_box + '-profile-splits-12')) line = group.add(inkex.PathElement(id=id_box + '-profile-splits-12'))
line.path = [ line.path = [
['M', [box_width,eyelash_width+(box_height*2)]], ['M', [box_width,eyelash_width+(box_height*2)]],
['l', [box_height-eyelash_measure3,0-(box_height-eyelash_measure3)]], ['l', [box_height-eyelash_measure3,0-(box_height-eyelash_measure3)]]
['Z', []]
] ]
line.style = cleft_line_style line.style = cleft_line_style
line = group.add(inkex.PathElement(id=id_box + '-profile-splits-13')) line = group.add(inkex.PathElement(id=id_box + '-profile-splits-13'))
line.path = [ line.path = [
['M', [box_width,eyelash_width+(box_height*2)+box_length]], ['M', [box_width,eyelash_width+(box_height*2)+box_length]],
['l', [box_height-eyelash_measure3,box_height-eyelash_measure3]], ['l', [box_height-eyelash_measure3,box_height-eyelash_measure3]]
['Z', []]
] ]
line.style = cleft_line_style line.style = cleft_line_style
line = group.add(inkex.PathElement(id=id_box + '-profile-splits-14')) line = group.add(inkex.PathElement(id=id_box + '-profile-splits-14'))
line.path = [ line.path = [
['M', [0,eyelash_width+(box_height*2)+box_length]], ['M', [0,eyelash_width+(box_height*2)+box_length]],
['l', [0-(box_height-eyelash_measure3),box_height-eyelash_measure3]], ['l', [0-(box_height-eyelash_measure3),box_height-eyelash_measure3]]
['Z', []]
] ]
line.style = cleft_line_style line.style = cleft_line_style

View File

@ -107,32 +107,28 @@ class GenerarEstuche(inkex.EffectExtension):
line = group.add(inkex.PathElement(id=id_caja + '-perfil-hendidos-1')) line = group.add(inkex.PathElement(id=id_caja + '-perfil-hendidos-1'))
line.path = [ line.path = [
['M', [0,0]], ['M', [0,0]],
['l', [0,alto_caja]], ['l', [0,alto_caja]]
['Z', []]
] ]
line.style = estilo_linea_hendidos line.style = estilo_linea_hendidos
line = group.add(inkex.PathElement(id=id_caja + '-perfil-hendidos-2')) line = group.add(inkex.PathElement(id=id_caja + '-perfil-hendidos-2'))
line.path = [ line.path = [
['M', [ancho_caja,0]], ['M', [ancho_caja,0]],
['l', [0,alto_caja]], ['l', [0,alto_caja]]
['Z', []]
] ]
line.style = estilo_linea_hendidos line.style = estilo_linea_hendidos
line = group.add(inkex.PathElement(id=id_caja + '-perfil-hendidos-3')) line = group.add(inkex.PathElement(id=id_caja + '-perfil-hendidos-3'))
line.path = [ line.path = [
['M', [ancho_caja+largo_caja,0]], ['M', [ancho_caja+largo_caja,0]],
['l', [0,alto_caja]], ['l', [0,alto_caja]]
['Z', []]
] ]
line.style = estilo_linea_hendidos line.style = estilo_linea_hendidos
line = group.add(inkex.PathElement(id=id_caja + '-perfil-hendidos-4')) line = group.add(inkex.PathElement(id=id_caja + '-perfil-hendidos-4'))
line.path = [ line.path = [
['M', [ancho_caja+ancho_caja+largo_caja,0]], ['M', [ancho_caja+ancho_caja+largo_caja,0]],
['l', [0,alto_caja]], ['l', [0,alto_caja]]
['Z', []]
] ]
line.style = estilo_linea_hendidos line.style = estilo_linea_hendidos

View File

@ -154,96 +154,84 @@ class GenerarEstuche(inkex.EffectExtension):
line = group.add(inkex.PathElement(id=id_caja + '-perfil-hendidos-1')) line = group.add(inkex.PathElement(id=id_caja + '-perfil-hendidos-1'))
line.path = [ line.path = [
['M', [0,0]], ['M', [0,0]],
['l', [0,alto_caja]], ['l', [0,alto_caja]]
['Z', []]
] ]
line.style = estilo_linea_hendidos line.style = estilo_linea_hendidos
line = group.add(inkex.PathElement(id=id_caja + '-perfil-hendidos-2')) line = group.add(inkex.PathElement(id=id_caja + '-perfil-hendidos-2'))
line.path = [ line.path = [
['M', [ancho_caja,0]], ['M', [ancho_caja,0]],
['l', [0,alto_caja]], ['l', [0,alto_caja]]
['Z', []]
] ]
line.style = estilo_linea_hendidos line.style = estilo_linea_hendidos
line = group.add(inkex.PathElement(id=id_caja + '-perfil-hendidos-3')) line = group.add(inkex.PathElement(id=id_caja + '-perfil-hendidos-3'))
line.path = [ line.path = [
['M', [ancho_caja+largo_caja,0]], ['M', [ancho_caja+largo_caja,0]],
['l', [0,alto_caja]], ['l', [0,alto_caja]]
['Z', []]
] ]
line.style = estilo_linea_hendidos line.style = estilo_linea_hendidos
line = group.add(inkex.PathElement(id=id_caja + '-perfil-hendidos-4')) line = group.add(inkex.PathElement(id=id_caja + '-perfil-hendidos-4'))
line.path = [ line.path = [
['M', [ancho_caja+ancho_caja+largo_caja,0]], ['M', [ancho_caja+ancho_caja+largo_caja,0]],
['l', [0,alto_caja]], ['l', [0,alto_caja]]
['Z', []]
] ]
line.style = estilo_linea_hendidos line.style = estilo_linea_hendidos
line = group.add(inkex.PathElement(id=id_caja + '-perfil-hendidos-5')) line = group.add(inkex.PathElement(id=id_caja + '-perfil-hendidos-5'))
line.path = [ line.path = [
['M', [ancho_caja,0]], ['M', [ancho_caja,0]],
['l', [largo_caja,0]], ['l', [largo_caja,0]]
['Z', []]
] ]
line.style = estilo_linea_hendidos line.style = estilo_linea_hendidos
line = group.add(inkex.PathElement(id=id_caja + '-perfil-hendidos-6')) line = group.add(inkex.PathElement(id=id_caja + '-perfil-hendidos-6'))
line.path = [ line.path = [
['M', [ancho_caja+largo_caja,0]], ['M', [ancho_caja+largo_caja,0]],
['l', [ancho_caja,0]], ['l', [ancho_caja,0]]
['Z', []]
] ]
line.style = estilo_linea_hendidos line.style = estilo_linea_hendidos
line = group.add(inkex.PathElement(id=id_caja + '-perfil-hendidos-7')) line = group.add(inkex.PathElement(id=id_caja + '-perfil-hendidos-7'))
line.path = [ line.path = [
['M', [(ancho_caja*2)+largo_caja,0]], ['M', [(ancho_caja*2)+largo_caja,0]],
['l', [largo_caja,0]], ['l', [largo_caja,0]]
['Z', []]
] ]
line.style = estilo_linea_hendidos line.style = estilo_linea_hendidos
line = group.add(inkex.PathElement(id=id_caja + '-perfil-hendidos-8')) line = group.add(inkex.PathElement(id=id_caja + '-perfil-hendidos-8'))
line.path = [ line.path = [
['M', [0,alto_caja]], ['M', [0,alto_caja]],
['l', [ancho_caja,0]], ['l', [ancho_caja,0]]
['Z', []]
] ]
line.style = estilo_linea_hendidos line.style = estilo_linea_hendidos
line = group.add(inkex.PathElement(id=id_caja + '-perfil-hendidos-9')) line = group.add(inkex.PathElement(id=id_caja + '-perfil-hendidos-9'))
line.path = [ line.path = [
['M', [ancho_caja,alto_caja]], ['M', [ancho_caja,alto_caja]],
['l', [largo_caja,0]], ['l', [largo_caja,0]]
['Z', []]
] ]
line.style = estilo_linea_hendidos line.style = estilo_linea_hendidos
line = group.add(inkex.PathElement(id=id_caja + '-perfil-hendidos-10')) line = group.add(inkex.PathElement(id=id_caja + '-perfil-hendidos-10'))
line.path = [ line.path = [
['M', [(ancho_caja*2)+largo_caja,alto_caja]], ['M', [(ancho_caja*2)+largo_caja,alto_caja]],
['l', [largo_caja,0]], ['l', [largo_caja,0]]
['Z', []]
] ]
line.style = estilo_linea_hendidos line.style = estilo_linea_hendidos
line = group.add(inkex.PathElement(id=id_caja + '-perfil-hendidos-11')) line = group.add(inkex.PathElement(id=id_caja + '-perfil-hendidos-11'))
line.path = [ line.path = [
['M', [ancho_caja+largo_caja,0-(largo_caja)]], ['M', [ancho_caja+largo_caja,0-(largo_caja)]],
['l', [ancho_caja,0]], ['l', [ancho_caja,0]]
['Z', []]
] ]
line.style = estilo_linea_hendidos line.style = estilo_linea_hendidos
line = group.add(inkex.PathElement(id=id_caja + '-perfil-hendidos-12')) line = group.add(inkex.PathElement(id=id_caja + '-perfil-hendidos-12'))
line.path = [ line.path = [
['M', [0,alto_caja+largo_caja]], ['M', [0,alto_caja+largo_caja]],
['l', [ancho_caja,0]], ['l', [ancho_caja,0]]
['Z', []]
] ]
line.style = estilo_linea_hendidos line.style = estilo_linea_hendidos

View File

@ -154,72 +154,63 @@ class GenerarEstuche(inkex.EffectExtension):
line = group.add(inkex.PathElement(id=id_caja + '-perfil-hendidos-1')) line = group.add(inkex.PathElement(id=id_caja + '-perfil-hendidos-1'))
line.path = [ line.path = [
['M', [0,0]], ['M', [0,0]],
['l', [0,alto_caja]], ['l', [0,alto_caja]]
['Z', []]
] ]
line.style = estilo_linea_hendidos line.style = estilo_linea_hendidos
line = group.add(inkex.PathElement(id=id_caja + '-perfil-hendidos-2')) line = group.add(inkex.PathElement(id=id_caja + '-perfil-hendidos-2'))
line.path = [ line.path = [
['M', [ancho_caja,0]], ['M', [ancho_caja,0]],
['l', [0,alto_caja]], ['l', [0,alto_caja]]
['Z', []]
] ]
line.style = estilo_linea_hendidos line.style = estilo_linea_hendidos
line = group.add(inkex.PathElement(id=id_caja + '-perfil-hendidos-3')) line = group.add(inkex.PathElement(id=id_caja + '-perfil-hendidos-3'))
line.path = [ line.path = [
['M', [ancho_caja+largo_caja,0]], ['M', [ancho_caja+largo_caja,0]],
['l', [0,alto_caja]], ['l', [0,alto_caja]]
['Z', []]
] ]
line.style = estilo_linea_hendidos line.style = estilo_linea_hendidos
line = group.add(inkex.PathElement(id=id_caja + '-perfil-hendidos-4')) line = group.add(inkex.PathElement(id=id_caja + '-perfil-hendidos-4'))
line.path = [ line.path = [
['M', [ancho_caja+ancho_caja+largo_caja,0]], ['M', [ancho_caja+ancho_caja+largo_caja,0]],
['l', [0,alto_caja]], ['l', [0,alto_caja]]
['Z', []]
] ]
line.style = estilo_linea_hendidos line.style = estilo_linea_hendidos
line = group.add(inkex.PathElement(id=id_caja + '-perfil-hendidos-5')) line = group.add(inkex.PathElement(id=id_caja + '-perfil-hendidos-5'))
line.path = [ line.path = [
['M', [ancho_caja,0]], ['M', [ancho_caja,0]],
['l', [largo_caja,0]], ['l', [largo_caja,0]]
['Z', []]
] ]
line.style = estilo_linea_hendidos line.style = estilo_linea_hendidos
line = group.add(inkex.PathElement(id=id_caja + '-perfil-hendidos-6')) line = group.add(inkex.PathElement(id=id_caja + '-perfil-hendidos-6'))
line.path = [ line.path = [
['M', [largo_caja+ancho_caja,0]], ['M', [largo_caja+ancho_caja,0]],
['l', [ancho_caja,0]], ['l', [ancho_caja,0]]
['Z', []]
] ]
line.style = estilo_linea_hendidos line.style = estilo_linea_hendidos
line = group.add(inkex.PathElement(id=id_caja + '-perfil-hendidos-7')) line = group.add(inkex.PathElement(id=id_caja + '-perfil-hendidos-7'))
line.path = [ line.path = [
['M', [(ancho_caja*2)+largo_caja,0]], ['M', [(ancho_caja*2)+largo_caja,0]],
['l', [largo_caja,0]], ['l', [largo_caja,0]]
['Z', []]
] ]
line.style = estilo_linea_hendidos line.style = estilo_linea_hendidos
line = group.add(inkex.PathElement(id=id_caja + '-perfil-hendidos-8')) line = group.add(inkex.PathElement(id=id_caja + '-perfil-hendidos-8'))
line.path = [ line.path = [
['M', [ancho_caja+largo_caja,0-largo_caja]], ['M', [ancho_caja+largo_caja,0-largo_caja]],
['l', [ancho_caja,0]], ['l', [ancho_caja,0]]
['Z', []]
] ]
line.style = estilo_linea_hendidos line.style = estilo_linea_hendidos
line = group.add(inkex.PathElement(id=id_caja + '-perfil-hendidos-9')) line = group.add(inkex.PathElement(id=id_caja + '-perfil-hendidos-9'))
line.path = [ line.path = [
['M', [0,alto_caja]], ['M', [0,alto_caja]],
['l', [(ancho_caja+largo_caja)*2,0]], ['l', [(ancho_caja+largo_caja)*2,0]]
['Z', []]
] ]
line.style = estilo_linea_hendidos line.style = estilo_linea_hendidos