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.path = [
['M', [0,0]],
['l', [0,alto_caja]],
['Z', []]
['l', [0,alto_caja]]
]
line.style = estilo_linea_hendidos
line = group.add(inkex.PathElement(id=id_caja + '-perfil-hendidos-2'))
line.path = [
['M', [ancho_caja,0]],
['l', [0,alto_caja]],
['Z', []]
['l', [0,alto_caja]]
]
line.style = estilo_linea_hendidos
line = group.add(inkex.PathElement(id=id_caja + '-perfil-hendidos-3'))
line.path = [
['M', [ancho_caja+largo_caja,0]],
['l', [0,alto_caja]],
['Z', []]
['l', [0,alto_caja]]
]
line.style = estilo_linea_hendidos
line = group.add(inkex.PathElement(id=id_caja + '-perfil-hendidos-4'))
line.path = [
['M', [ancho_caja+ancho_caja+largo_caja,0]],
['l', [0,alto_caja]],
['Z', []]
['l', [0,alto_caja]]
]
line.style = estilo_linea_hendidos
line = group.add(inkex.PathElement(id=id_caja + '-perfil-hendidos-5'))
line.path = [
['M', [ancho_caja,0]],
['l', [largo_caja,0]],
['Z', []]
['l', [largo_caja,0]]
]
line.style = estilo_linea_hendidos
line = group.add(inkex.PathElement(id=id_caja + '-perfil-hendidos-6'))
line.path = [
['M', [0,0]],
['l', [ancho_caja,0]],
['Z', []]
['l', [ancho_caja,0]]
]
line.style = estilo_linea_hendidos
line = group.add(inkex.PathElement(id=id_caja + '-perfil-hendidos-7'))
line.path = [
['M', [(ancho_caja*2)+largo_caja,0]],
['l', [largo_caja,0]],
['Z', []]
['l', [largo_caja,0]]
]
line.style = estilo_linea_hendidos
line = group.add(inkex.PathElement(id=id_caja + '-perfil-hendidos-8'))
line.path = [
['M', [0,alto_caja]],
['l', [ancho_caja,0]],
['Z', []]
['l', [ancho_caja,0]]
]
line.style = estilo_linea_hendidos
line = group.add(inkex.PathElement(id=id_caja + '-perfil-hendidos-9'))
line.path = [
['M', [ancho_caja,alto_caja]],
['l', [largo_caja,0]],
['Z', []]
['l', [largo_caja,0]]
]
line.style = estilo_linea_hendidos
line = group.add(inkex.PathElement(id=id_caja + '-perfil-hendidos-10'))
line.path = [
['M', [(ancho_caja*2)+largo_caja,alto_caja]],
['l', [largo_caja,0]],
['Z', []]
['l', [largo_caja,0]]
]
line.style = estilo_linea_hendidos
line = group.add(inkex.PathElement(id=id_caja + '-perfil-hendidos-11'))
line.path = [
['M', [0,0-(largo_caja)]],
['l', [ancho_caja,0]],
['Z', []]
['l', [ancho_caja,0]]
]
line.style = estilo_linea_hendidos
line = group.add(inkex.PathElement(id=id_caja + '-perfil-hendidos-12'))
line.path = [
['M', [0,alto_caja+largo_caja]],
['l', [ancho_caja,0]],
['Z', []]
['l', [ancho_caja,0]]
]
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.path = [
['M', [0,0]],
['l', [0,box_height]],
['Z', []]
['l', [0,box_height]]
]
line.style = cleft_line_style
line = group.add(inkex.PathElement(id=box_id + '-profile-splits-2'))
line.path = [
['M', [box_width,0]],
['l', [0,box_height]],
['Z', []]
['l', [0,box_height]]
]
line.style = cleft_line_style
line = group.add(inkex.PathElement(id=box_id + '-profile-splits-3'))
line.path = [
['M', [box_width+box_length,0]],
['l', [0,box_height]],
['Z', []]
['l', [0,box_height]]
]
line.style = cleft_line_style
line = group.add(inkex.PathElement(id=box_id + '-profile-splits-4'))
line.path = [
['M', [box_width+box_width+box_length,0]],
['l', [0,box_height]],
['Z', []]
['l', [0,box_height]]
]
line.style = cleft_line_style
line = group.add(inkex.PathElement(id=box_id + '-profile-splits-5'))
line.path = [
['M', [0,0]],
['l', [box_width,0]],
['Z', []]
['l', [box_width,0]]
]
line.style = cleft_line_style
line = group.add(inkex.PathElement(id=box_id + '-profile-splits-6'))
line.path = [
['M', [0,box_height]],
['l', [((box_length+box_width)*2),0]],
['Z', []]
['l', [((box_length+box_width)*2),0]]
]
line.style = cleft_line_style
line = group.add(inkex.PathElement(id=box_id + '-profile-splits-7'))
line.path = [
['M', [box_width,0]],
['l', [box_length,0]],
['Z', []]
['l', [box_length,0]]
]
line.style = cleft_line_style
line = group.add(inkex.PathElement(id=box_id + '-profile-splits-8'))
line.path = [
['M', [box_length+box_width*2,0]],
['l', [box_length,0]],
['Z', []]
['l', [box_length,0]]
]
line.style = cleft_line_style
line = group.add(inkex.PathElement(id=box_id + '-profile-splits-9'))
line.path = [
['M', [0,0-(box_length)]],
['l', [box_width,0]],
['Z', []]
['l', [box_width,0]]
]
line.style = cleft_line_style
line = group.add(inkex.PathElement(id=box_id + '-profile-drill-1'))
line.path = [
['M', [box_width-measure2_side_blind,box_height+measure2_side_blind]],
['l', [0-((box_length*0.5)),(box_length*0.5)]],
['Z', []]
['l', [0-((box_length*0.5)),(box_length*0.5)]]
]
line.style = line_style_drills
line = group.add(inkex.PathElement(id=box_id + '-profile-drill-2'))
line.path = [
['M', [((box_width*2)+box_length)-measure2_side_blind,box_height+measure2_side_blind]],
['l', [0-((box_length*0.5)),(box_length*0.5)]],
['Z', []]
['l', [0-((box_length*0.5)),(box_length*0.5)]]
]
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.path = [
['M', [alto_caja,0]],
['l', [0,largo_caja+(alto_caja*2)]],
['Z', []]
['l', [0,largo_caja+(alto_caja*2)]]
]
line.style = estilo_linea_hendidos
line = group.add(inkex.PathElement(id=id_caja + '-perfil-hendidos-2'))
line.path = [
['M', [ancho_caja+alto_caja,0]],
['l', [0,largo_caja+(alto_caja*2)]],
['Z', []]
['l', [0,largo_caja+(alto_caja*2)]]
]
line.style = estilo_linea_hendidos
line = group.add(inkex.PathElement(id=id_caja + '-perfil-hendidos-3'))
line.path = [
['M', [alto_caja,alto_caja]],
['l', [ancho_caja,0]],
['Z', []]
['l', [ancho_caja,0]]
]
line.style = estilo_linea_hendidos
line = group.add(inkex.PathElement(id=id_caja + '-perfil-hendidos-4'))
line.path = [
['M', [alto_caja,alto_caja+largo_caja]],
['l', [ancho_caja,0]],
['Z', []]
['l', [ancho_caja,0]]
]
line.style = estilo_linea_hendidos
line = group.add(inkex.PathElement(id=id_caja + '-perfil-hendidos-5'))
line.path = [
['M', [alto_caja,alto_caja]],
['l', [0-alto_caja,alto_caja]],
['Z', []]
['l', [0-alto_caja,alto_caja]]
]
line.style = estilo_linea_hendidos
line = group.add(inkex.PathElement(id=id_caja + '-perfil-hendidos-6'))
line.path = [
['M', [alto_caja+ancho_caja,alto_caja]],
['l', [alto_caja,alto_caja]],
['Z', []]
['l', [alto_caja,alto_caja]]
]
line.style = estilo_linea_hendidos
line = group.add(inkex.PathElement(id=id_caja + '-perfil-hendidos-7'))
line.path = [
['M', [alto_caja+ancho_caja,alto_caja+largo_caja]],
['l', [alto_caja,0-alto_caja]],
['Z', []]
['l', [alto_caja,0-alto_caja]]
]
line.style = estilo_linea_hendidos
line = group.add(inkex.PathElement(id=id_caja + '-perfil-hendidos-8'))
line.path = [
['M', [alto_caja,alto_caja+largo_caja]],
['l', [0-alto_caja,0-alto_caja]],
['Z', []]
['l', [0-alto_caja,0-alto_caja]]
]
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.path = [
['M', [0,eyelash_width]],
['l', [box_width,0]],
['Z', []]
['l', [box_width,0]]
]
line.style = cleft_line_style
line = group.add(inkex.PathElement(id=id_box + '-profile-splits-2'))
line.path = [
['M', [0,(box_height+eyelash_width)]],
['l', [box_width,0]],
['Z', []]
['l', [box_width,0]]
]
line.style = cleft_line_style
line = group.add(inkex.PathElement(id=id_box + '-profile-splits-3'))
line.path = [
['M', [0-box_height,((box_height*2)+eyelash_width)]],
['l', [box_width+(box_height*2),0]],
['Z', []]
['l', [box_width+(box_height*2),0]]
]
line.style = cleft_line_style
line = group.add(inkex.PathElement(id=id_box + '-profile-splits-4'))
line.path = [
['M', [0-box_height,(((box_height*2)+eyelash_width)+box_length)]],
['l', [box_width+(box_height*2),0]],
['Z', []]
['l', [box_width+(box_height*2),0]]
]
line.style = cleft_line_style
line = group.add(inkex.PathElement(id=id_box + '-profile-splits-5'))
line.path = [
['M', [0,(box_height*3)+box_length+eyelash_width]],
['l', [box_width,0]],
['Z', []]
['l', [box_width,0]]
]
line.style = cleft_line_style
line = group.add(inkex.PathElement(id=id_box + '-profile-splits-6'))
line.path = [
['M', [0,(box_height*4)+box_length+eyelash_width]],
['l', [box_width,0]],
['Z', []]
['l', [box_width,0]]
]
line.style = cleft_line_style
line = group.add(inkex.PathElement(id=id_box + '-profile-splits-7'))
line.path = [
['M', [0,eyelash_width]],
['l', [0,box_length+(box_height*4)]],
['Z', []]
['l', [0,box_length+(box_height*4)]]
]
line.style = cleft_line_style
line = group.add(inkex.PathElement(id=id_box + '-profile-splits-8'))
line.path = [
['M', [box_width,eyelash_width]],
['l', [0,box_length+(box_height*4)]],
['Z', []]
['l', [0,box_length+(box_height*4)]]
]
line.style = cleft_line_style
line = group.add(inkex.PathElement(id=id_box + '-profile-splits-9'))
line.path = [
['M', [0-box_height,eyelash_width+(box_height*2)]],
['l', [0,box_length]],
['Z', []]
['l', [0,box_length]]
]
line.style = cleft_line_style
line = group.add(inkex.PathElement(id=id_box + '-profile-splits-10'))
line.path = [
['M', [box_width+box_height,eyelash_width+(box_height*2)]],
['l', [0,box_length]],
['Z', []]
['l', [0,box_length]]
]
line.style = cleft_line_style
line = group.add(inkex.PathElement(id=id_box + '-profile-splits-11'))
line.path = [
['M', [0,eyelash_width+(box_height*2)]],
['l', [0-(box_height-eyelash_measure3),0-(box_height-eyelash_measure3)]],
['Z', []]
['l', [0-(box_height-eyelash_measure3),0-(box_height-eyelash_measure3)]]
]
line.style = cleft_line_style
line = group.add(inkex.PathElement(id=id_box + '-profile-splits-12'))
line.path = [
['M', [box_width,eyelash_width+(box_height*2)]],
['l', [box_height-eyelash_measure3,0-(box_height-eyelash_measure3)]],
['Z', []]
['l', [box_height-eyelash_measure3,0-(box_height-eyelash_measure3)]]
]
line.style = cleft_line_style
line = group.add(inkex.PathElement(id=id_box + '-profile-splits-13'))
line.path = [
['M', [box_width,eyelash_width+(box_height*2)+box_length]],
['l', [box_height-eyelash_measure3,box_height-eyelash_measure3]],
['Z', []]
['l', [box_height-eyelash_measure3,box_height-eyelash_measure3]]
]
line.style = cleft_line_style
line = group.add(inkex.PathElement(id=id_box + '-profile-splits-14'))
line.path = [
['M', [0,eyelash_width+(box_height*2)+box_length]],
['l', [0-(box_height-eyelash_measure3),box_height-eyelash_measure3]],
['Z', []]
['l', [0-(box_height-eyelash_measure3),box_height-eyelash_measure3]]
]
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.path = [
['M', [0,0]],
['l', [0,alto_caja]],
['Z', []]
['l', [0,alto_caja]]
]
line.style = estilo_linea_hendidos
line = group.add(inkex.PathElement(id=id_caja + '-perfil-hendidos-2'))
line.path = [
['M', [ancho_caja,0]],
['l', [0,alto_caja]],
['Z', []]
['l', [0,alto_caja]]
]
line.style = estilo_linea_hendidos
line = group.add(inkex.PathElement(id=id_caja + '-perfil-hendidos-3'))
line.path = [
['M', [ancho_caja+largo_caja,0]],
['l', [0,alto_caja]],
['Z', []]
['l', [0,alto_caja]]
]
line.style = estilo_linea_hendidos
line = group.add(inkex.PathElement(id=id_caja + '-perfil-hendidos-4'))
line.path = [
['M', [ancho_caja+ancho_caja+largo_caja,0]],
['l', [0,alto_caja]],
['Z', []]
['l', [0,alto_caja]]
]
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.path = [
['M', [0,0]],
['l', [0,alto_caja]],
['Z', []]
['l', [0,alto_caja]]
]
line.style = estilo_linea_hendidos
line = group.add(inkex.PathElement(id=id_caja + '-perfil-hendidos-2'))
line.path = [
['M', [ancho_caja,0]],
['l', [0,alto_caja]],
['Z', []]
['l', [0,alto_caja]]
]
line.style = estilo_linea_hendidos
line = group.add(inkex.PathElement(id=id_caja + '-perfil-hendidos-3'))
line.path = [
['M', [ancho_caja+largo_caja,0]],
['l', [0,alto_caja]],
['Z', []]
['l', [0,alto_caja]]
]
line.style = estilo_linea_hendidos
line = group.add(inkex.PathElement(id=id_caja + '-perfil-hendidos-4'))
line.path = [
['M', [ancho_caja+ancho_caja+largo_caja,0]],
['l', [0,alto_caja]],
['Z', []]
['l', [0,alto_caja]]
]
line.style = estilo_linea_hendidos
line = group.add(inkex.PathElement(id=id_caja + '-perfil-hendidos-5'))
line.path = [
['M', [ancho_caja,0]],
['l', [largo_caja,0]],
['Z', []]
['l', [largo_caja,0]]
]
line.style = estilo_linea_hendidos
line = group.add(inkex.PathElement(id=id_caja + '-perfil-hendidos-6'))
line.path = [
['M', [ancho_caja+largo_caja,0]],
['l', [ancho_caja,0]],
['Z', []]
['l', [ancho_caja,0]]
]
line.style = estilo_linea_hendidos
line = group.add(inkex.PathElement(id=id_caja + '-perfil-hendidos-7'))
line.path = [
['M', [(ancho_caja*2)+largo_caja,0]],
['l', [largo_caja,0]],
['Z', []]
['l', [largo_caja,0]]
]
line.style = estilo_linea_hendidos
line = group.add(inkex.PathElement(id=id_caja + '-perfil-hendidos-8'))
line.path = [
['M', [0,alto_caja]],
['l', [ancho_caja,0]],
['Z', []]
['l', [ancho_caja,0]]
]
line.style = estilo_linea_hendidos
line = group.add(inkex.PathElement(id=id_caja + '-perfil-hendidos-9'))
line.path = [
['M', [ancho_caja,alto_caja]],
['l', [largo_caja,0]],
['Z', []]
['l', [largo_caja,0]]
]
line.style = estilo_linea_hendidos
line = group.add(inkex.PathElement(id=id_caja + '-perfil-hendidos-10'))
line.path = [
['M', [(ancho_caja*2)+largo_caja,alto_caja]],
['l', [largo_caja,0]],
['Z', []]
['l', [largo_caja,0]]
]
line.style = estilo_linea_hendidos
line = group.add(inkex.PathElement(id=id_caja + '-perfil-hendidos-11'))
line.path = [
['M', [ancho_caja+largo_caja,0-(largo_caja)]],
['l', [ancho_caja,0]],
['Z', []]
['l', [ancho_caja,0]]
]
line.style = estilo_linea_hendidos
line = group.add(inkex.PathElement(id=id_caja + '-perfil-hendidos-12'))
line.path = [
['M', [0,alto_caja+largo_caja]],
['l', [ancho_caja,0]],
['Z', []]
['l', [ancho_caja,0]]
]
line.style = estilo_linea_hendidos

View File

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