diff --git a/extensions/fablabchemnitz/estucheria/airplanetypelinearcase.py b/extensions/fablabchemnitz/estucheria/airplanetypelinearcase.py index b1f8e224..6bdb14a0 100644 --- a/extensions/fablabchemnitz/estucheria/airplanetypelinearcase.py +++ b/extensions/fablabchemnitz/estucheria/airplanetypelinearcase.py @@ -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 diff --git a/extensions/fablabchemnitz/estucheria/automaticbottomcase.py b/extensions/fablabchemnitz/estucheria/automaticbottomcase.py index 19013f17..ec50a671 100644 --- a/extensions/fablabchemnitz/estucheria/automaticbottomcase.py +++ b/extensions/fablabchemnitz/estucheria/automaticbottomcase.py @@ -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 diff --git a/extensions/fablabchemnitz/estucheria/box4p.py b/extensions/fablabchemnitz/estucheria/box4p.py index e47d28bb..3a14b486 100644 --- a/extensions/fablabchemnitz/estucheria/box4p.py +++ b/extensions/fablabchemnitz/estucheria/box4p.py @@ -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 diff --git a/extensions/fablabchemnitz/estucheria/doublerailingcase.py b/extensions/fablabchemnitz/estucheria/doublerailingcase.py index e30fdf56..d0ec15cf 100644 --- a/extensions/fablabchemnitz/estucheria/doublerailingcase.py +++ b/extensions/fablabchemnitz/estucheria/doublerailingcase.py @@ -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 diff --git a/extensions/fablabchemnitz/estucheria/girdle.py b/extensions/fablabchemnitz/estucheria/girdle.py index 0952fd77..c15df7fd 100644 --- a/extensions/fablabchemnitz/estucheria/girdle.py +++ b/extensions/fablabchemnitz/estucheria/girdle.py @@ -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 diff --git a/extensions/fablabchemnitz/estucheria/linearcase.py b/extensions/fablabchemnitz/estucheria/linearcase.py index 80357db4..ee56f585 100644 --- a/extensions/fablabchemnitz/estucheria/linearcase.py +++ b/extensions/fablabchemnitz/estucheria/linearcase.py @@ -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 diff --git a/extensions/fablabchemnitz/estucheria/swissbottomcase.py b/extensions/fablabchemnitz/estucheria/swissbottomcase.py index 6f35e54c..e80b3276 100644 --- a/extensions/fablabchemnitz/estucheria/swissbottomcase.py +++ b/extensions/fablabchemnitz/estucheria/swissbottomcase.py @@ -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__':