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

@ -65,7 +65,7 @@ class GenerarEstuche(inkex.EffectExtension):
medida_pestana3=0.4 medida_pestana3=0.4
medida_pestana3=0.3 medida_pestana3=0.3
medida_pestana5=1.0 medida_pestana5=1.0
if self.options.unit=="in": if self.options.unit=="in":
medida_pestana1=0.196 medida_pestana1=0.196
medida_pestana2=0.039 medida_pestana2=0.039
@ -95,132 +95,123 @@ class GenerarEstuche(inkex.EffectExtension):
#Perfil Exterior de la caja #Perfil Exterior de la caja
line = group.add(inkex.PathElement(id=id_caja + '-perfil-exterior')) line = group.add(inkex.PathElement(id=id_caja + '-perfil-exterior'))
line.path = [ line.path = [
['M', [0, 0]], ['M', [0, 0]],
['l', [ancho_caja, 0]], ['l', [ancho_caja, 0]],
['l', [0,0]], ['l', [0,0]],
['l', [0, 0]], ['l', [0, 0]],
['l', [0, 0-medida1_pestanas_laterales]], ['l', [0, 0-medida1_pestanas_laterales]],
['l', [medida2_pestanas_laterales, 0-medida2_pestanas_laterales]], ['l', [medida2_pestanas_laterales, 0-medida2_pestanas_laterales]],
['l', [medida3_pestanas_laterales, 0-(alto_pestana-medida2_pestanas_laterales-medida1_pestanas_laterales)]], ['l', [medida3_pestanas_laterales, 0-(alto_pestana-medida2_pestanas_laterales-medida1_pestanas_laterales)]],
['l', [(largo_caja-medida2_pestanas_laterales-medida3_pestanas_laterales-medida4_pestanas_laterales), 0]], ['l', [(largo_caja-medida2_pestanas_laterales-medida3_pestanas_laterales-medida4_pestanas_laterales), 0]],
['l', [0,alto_pestana-medida4_pestanas_laterales]], ['l', [0,alto_pestana-medida4_pestanas_laterales]],
['l', [medida4_pestanas_laterales, medida4_pestanas_laterales]], ['l', [medida4_pestanas_laterales, medida4_pestanas_laterales]],
['l', [0, 0-largo_caja]], ['l', [0, 0-largo_caja]],
['l', [0, 0]], ['l', [0, 0]],
['q', [0,0-alto_pestana_cierre,alto_pestana_cierre, 0-alto_pestana_cierre]], ['q', [0,0-alto_pestana_cierre,alto_pestana_cierre, 0-alto_pestana_cierre]],
['l', [ancho_caja-(alto_pestana_cierre*2), 0]], ['l', [ancho_caja-(alto_pestana_cierre*2), 0]],
['q', [alto_pestana_cierre,0,alto_pestana_cierre,alto_pestana_cierre]], ['q', [alto_pestana_cierre,0,alto_pestana_cierre,alto_pestana_cierre]],
['l', [0, 0]], ['l', [0, 0]],
['l', [0, (largo_caja)]], ['l', [0, (largo_caja)]],
['l', [medida4_pestanas_laterales, 0-medida4_pestanas_laterales]], ['l', [medida4_pestanas_laterales, 0-medida4_pestanas_laterales]],
['l', [0,0-(alto_pestana-medida4_pestanas_laterales)]], ['l', [0,0-(alto_pestana-medida4_pestanas_laterales)]],
['l', [(largo_caja-medida2_pestanas_laterales-medida3_pestanas_laterales-medida4_pestanas_laterales), 0]], ['l', [(largo_caja-medida2_pestanas_laterales-medida3_pestanas_laterales-medida4_pestanas_laterales), 0]],
['l', [medida3_pestanas_laterales, (alto_pestana-medida2_pestanas_laterales-medida1_pestanas_laterales)]], ['l', [medida3_pestanas_laterales, (alto_pestana-medida2_pestanas_laterales-medida1_pestanas_laterales)]],
['l', [medida2_pestanas_laterales, medida2_pestanas_laterales]], ['l', [medida2_pestanas_laterales, medida2_pestanas_laterales]],
['l', [0, medida1_pestanas_laterales]], ['l', [0, medida1_pestanas_laterales]],
['l', [0,0]], ['l', [0,0]],
['l', [0, alto_caja]], ['l', [0, alto_caja]],
['l', [0,(largo_caja*0.5)+medida1_pestanas_cierre]], ['l', [0,(largo_caja*0.5)+medida1_pestanas_cierre]],
['l', [0-(largo_caja)*0.5,0]], ['l', [0-(largo_caja)*0.5,0]],
['l', [0,0-medida1_pestanas_cierre]], ['l', [0,0-medida1_pestanas_cierre]],
['l', [0-(largo_caja)*0.5,0-((largo_caja)*0.5)]], ['l', [0-(largo_caja)*0.5,0-((largo_caja)*0.5)]],
['l', [0,(largo_caja*0.5)+medida1_pestanas_cierre]], ['l', [0,(largo_caja*0.5)+medida1_pestanas_cierre]],
['l', [0-(ancho_caja)*0.25,0]], ['l', [0-(ancho_caja)*0.25,0]],
['l', [0, 0-medida1_pestanas_cierre]], ['l', [0, 0-medida1_pestanas_cierre]],
['l', [0-(ancho_caja)*0.5,0]], ['l', [0-(ancho_caja)*0.5,0]],
['l', [0, medida1_pestanas_cierre]], ['l', [0, medida1_pestanas_cierre]],
['l', [0-(ancho_caja)*0.25,0]], ['l', [0-(ancho_caja)*0.25,0]],
['l', [0,0-((largo_caja*0.5)+medida1_pestanas_cierre)]], ['l', [0,0-((largo_caja*0.5)+medida1_pestanas_cierre)]],
['l', [0-(largo_caja)*0.5,((largo_caja*0.5))]], ['l', [0-(largo_caja)*0.5,((largo_caja*0.5))]],
['l', [0,medida1_pestanas_cierre]], ['l', [0,medida1_pestanas_cierre]],
['l', [0-(largo_caja)*0.5,0]], ['l', [0-(largo_caja)*0.5,0]],
['l', [0,0-((largo_caja*0.5)+medida1_pestanas_cierre)]], ['l', [0,0-((largo_caja*0.5)+medida1_pestanas_cierre)]],
['l', [0-ancho_caja*0.25,(largo_caja*0.5)]], ['l', [0-ancho_caja*0.25,(largo_caja*0.5)]],
['l', [0,medida1_pestanas_cierre]], ['l', [0,medida1_pestanas_cierre]],
['l', [0-ancho_caja*0.5,0]], ['l', [0-ancho_caja*0.5,0]],
['l', [0,0-medida1_pestanas_cierre]], ['l', [0,0-medida1_pestanas_cierre]],
['l', [0-ancho_caja*0.25,0-(largo_caja*0.5)]], ['l', [0-ancho_caja*0.25,0-(largo_caja*0.5)]],
['l', [0, 0]], ['l', [0, 0]],
['l', [0, 0]], ['l', [0, 0]],
['l', [0, 0-medida2_pestanas_laterales]], ['l', [0, 0-medida2_pestanas_laterales]],
['l', [0-ancho_pestana_cola, 0-(ancho_pestana_cola/2)]], ['l', [0-ancho_pestana_cola, 0-(ancho_pestana_cola/2)]],
['l', [0, 0-(alto_caja-ancho_pestana_cola-(medida2_pestanas_laterales*2))]], ['l', [0, 0-(alto_caja-ancho_pestana_cola-(medida2_pestanas_laterales*2))]],
['l', [ancho_pestana_cola, 0-(ancho_pestana_cola/2)]], ['l', [ancho_pestana_cola, 0-(ancho_pestana_cola/2)]],
['Z', []] ['Z', []]
] ]
line.style = estilo_linea_cortes line.style = estilo_linea_cortes
#Hendidos #Hendidos
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
if __name__ == '__main__': if __name__ == '__main__':