initial commit
[ETG_Helmet] / ENCLOSURE / buttons.scad
1
2 // Module names are of the form poly_<inkscape-path-id>().  As a result,
3 // you can associate a polygon in this OpenSCAD program with the corresponding
4 // SVG element in the Inkscape document by looking for the XML element with
5 // the attribute id="inkscape-path-id".
6
7 // fudge value is used to ensure that subtracted solids are a tad taller
8 // in the z dimension than the polygon being subtracted from.  This helps
9 // keep the resulting .stl file manifold.
10 fudge = 0.1;
11
12 module poly_path4571(h)
13 {
14   scale([25.4/90, -25.4/90, 1]) union()
15   {
16     linear_extrude(height=h)
17       polygon([[11.982883,74.170123],[12.501614,76.198496],[13.397687,78.068949],[14.639840,79.729850],[16.196812,81.129571],[17.997887,82.197049],[19.954116,82.886038],[22.006886,83.182137],[24.097583,83.070943],[26.125958,82.552212],[27.996412,81.656138],[29.657314,80.413984],[31.057036,78.857011],[32.124513,77.055934],[32.813502,75.099703],[33.109599,73.046932],[32.998403,70.956233],[32.479671,68.927860],[31.583596,67.057408],[30.341441,65.396507],[28.784468,63.996787],[26.983392,62.929311],[25.027162,62.240323],[22.974391,61.944227],[20.883693,62.055423],[18.855321,62.574155],[16.984871,63.470229],[15.323971,64.712383],[13.924251,66.269354],[12.856775,68.070429],[12.167787,70.026658],[11.871689,72.079427],[11.982883,74.170123],[11.982883,74.170123]]);
18   }
19 }
20
21 module poly_path4573(h)
22 {
23   scale([25.4/90, -25.4/90, 1]) union()
24   {
25     linear_extrude(height=h)
26       polygon([[-33.034587,74.166003],[-32.515855,76.194373],[-31.619782,78.064823],[-30.377629,79.725722],[-28.820658,81.125441],[-27.019583,82.192918],[-25.063355,82.881907],[-23.010585,83.178006],[-20.919888,83.066813],[-18.891514,82.548080],[-17.021062,81.652006],[-15.360160,80.409852],[-13.960440,78.852880],[-12.892964,77.051805],[-12.203977,75.095577],[-11.907880,73.042809],[-12.019077,70.952113],[-12.537808,68.923743],[-13.433881,67.053293],[-14.676034,65.392394],[-16.233005,63.992675],[-18.034080,62.925198],[-19.990309,62.236209],[-22.043078,61.940110],[-24.133776,62.051303],[-26.162150,62.570035],[-28.032602,63.466110],[-29.693503,64.708264],[-31.093223,66.265236],[-32.160699,68.066310],[-32.849687,70.022539],[-33.145783,72.075307],[-33.034587,74.166003],[-33.034587,74.166003]]);
27   }
28 }
29
30 module poly_path4575(h)
31 {
32   scale([25.4/90, -25.4/90, 1]) union()
33   {
34     linear_extrude(height=h)
35       polygon([[-70.204154,48.764793],[-69.685423,50.793167],[-68.789350,52.663620],[-67.547196,54.324522],[-65.990224,55.724243],[-64.189147,56.791721],[-62.232917,57.480710],[-60.180145,57.776808],[-58.089447,57.665613],[-56.061073,57.146880],[-54.190622,56.250805],[-52.529721,55.008650],[-51.130002,53.451676],[-50.062526,51.650600],[-49.373540,49.694370],[-49.077444,47.641600],[-49.188641,45.550903],[-49.707374,43.522532],[-50.603449,41.652082],[-51.845604,39.991184],[-53.402577,38.591466],[-55.203652,37.523991],[-57.159881,36.835004],[-59.212650,36.538907],[-61.303347,36.650103],[-63.388377,37.187439],[-65.267155,38.101349],[-66.903888,39.343119],[-68.262784,40.864032],[-69.308051,42.615372],[-70.003896,44.548423],[-70.314528,46.614468],[-70.204154,48.764793],[-70.204154,48.764793]]);
36   }
37 }
38
39 module poly_path4579(h)
40 {
41   scale([25.4/90, -25.4/90, 1]) union()
42   {
43     linear_extrude(height=h)
44       polygon([[-76.517319,-37.004937],[-75.998587,-34.976563],[-75.102512,-33.106110],[-73.860357,-31.445208],[-72.303383,-30.045488],[-70.502306,-28.978012],[-68.546075,-28.289025],[-66.493304,-27.992929],[-64.402606,-28.104127],[-62.374235,-28.622860],[-60.503786,-29.518934],[-58.842887,-30.761088],[-57.443169,-32.318060],[-56.375694,-34.119135],[-55.686707,-36.075363],[-55.390610,-38.128131],[-55.501805,-40.218827],[-56.020535,-42.247199],[-56.916606,-44.117650],[-58.158758,-45.778551],[-59.715727,-47.178272],[-61.516800,-48.245749],[-63.473027,-48.934739],[-65.525794,-49.230839],[-67.616490,-49.119647],[-69.644866,-48.600918],[-71.515321,-47.704846],[-73.176225,-46.462692],[-74.575948,-44.905719],[-75.643427,-43.104642],[-76.332417,-41.148410],[-76.628515,-39.095637],[-76.517319,-37.004937],[-76.517319,-37.004937]]);
45   }
46 }
47
48 module poly_path4577(h)
49 {
50   scale([25.4/90, -25.4/90, 1]) union()
51   {
52     linear_extrude(height=h)
53       polygon([[-86.601194,6.853643],[-86.063858,8.938674],[-85.149948,10.817452],[-83.908178,12.454185],[-82.387265,13.813082],[-80.635924,14.858349],[-78.702873,15.554195],[-76.636826,15.864827],[-74.486501,15.754453],[-72.458127,15.235722],[-70.587675,14.339649],[-68.926773,13.097496],[-67.527052,11.540525],[-66.459574,9.739449],[-65.770584,7.783220],[-65.474486,5.730450],[-65.585680,3.639753],[-66.104411,1.611379],[-67.000484,-0.259074],[-68.242638,-1.919976],[-69.799610,-3.319697],[-71.600686,-4.387175],[-73.556917,-5.076164],[-75.609687,-5.372262],[-77.700386,-5.261067],[-79.728759,-4.742334],[-81.599210,-3.846259],[-83.260111,-2.604104],[-84.659831,-1.047131],[-85.727306,0.753945],[-86.416294,2.710175],[-86.712390,4.762945],[-86.601194,6.853643],[-86.601194,6.853643]]);
54   }
55 }
56
57 module poly_path4565(h)
58 {
59   scale([25.4/90, -25.4/90, 1]) union()
60   {
61     linear_extrude(height=h)
62       polygon([[55.525293,-36.988207],[56.062630,-34.903175],[56.976542,-33.024396],[58.218313,-31.387662],[59.739228,-30.028765],[61.490569,-28.983498],[63.423621,-28.287653],[65.489668,-27.977022],[67.639993,-28.087397],[69.725025,-28.624732],[71.603804,-29.538642],[73.240539,-30.780412],[74.599437,-32.301326],[75.644706,-34.052668],[76.340553,-35.985721],[76.651186,-38.051769],[76.540813,-40.202097],[76.022079,-42.230471],[75.126004,-44.100923],[73.883849,-45.761823],[72.326875,-47.161543],[70.525799,-48.229019],[68.569570,-48.918006],[66.516800,-49.214103],[64.426103,-49.102907],[62.341073,-48.565571],[60.462295,-47.651660],[58.825562,-46.409889],[57.466666,-44.888975],[56.421399,-43.137634],[55.725553,-41.204581],[55.414920,-39.138534],[55.525293,-36.988207]]);
63   }
64 }
65
66 module poly_path4563(h)
67 {
68   scale([25.4/90, -25.4/90, 1]) union()
69   {
70     linear_extrude(height=h)
71       polygon([[-0.000017,-83.182137],[2.412968,-82.694683],[4.384217,-81.365566],[5.713674,-79.394657],[6.201283,-76.981827],[5.713674,-74.568853],[4.384217,-72.597617],[2.412968,-71.268171],[-0.000017,-70.780567],[-2.412992,-71.268171],[-4.384230,-72.597617],[-5.713678,-74.568853],[-6.201283,-76.981827],[-5.713678,-79.394657],[-4.384230,-81.365566],[-2.412992,-82.694683],[-0.000017,-83.182137]]);
72   }
73 }
74
75 module poly_path4567(h)
76 {
77   scale([25.4/90, -25.4/90, 1]) union()
78   {
79     linear_extrude(height=h)
80       polygon([[65.585673,6.883943],[66.104405,8.912317],[67.000480,10.782769],[68.242634,12.443670],[69.799608,13.843390],[71.600684,14.910866],[73.556915,15.599853],[75.609685,15.895950],[77.700383,15.784753],[79.728757,15.266021],[81.599209,14.369947],[83.260110,13.127792],[84.659830,11.570819],[85.727306,9.769742],[86.416294,7.813512],[86.712390,5.760741],[86.601193,3.670043],[86.082460,1.641671],[85.186384,-0.228780],[83.944229,-1.889679],[82.387256,-3.289398],[80.586179,-4.356872],[78.629950,-5.045859],[76.577180,-5.341954],[74.486483,-5.230757],[72.458111,-4.712025],[70.587660,-3.815952],[68.926760,-2.573798],[67.527040,-1.016826],[66.459564,0.784249],[65.770576,2.740477],[65.474478,4.793246],[65.585673,6.883943],[65.585673,6.883943]]);
81   }
82 }
83
84 module poly_path4581(h)
85 {
86   scale([25.4/90, -25.4/90, 1]) union()
87   {
88     linear_extrude(height=h)
89       polygon([[-18.000017,-83.182137],[-15.587032,-82.694683],[-13.615783,-81.365566],[-12.286326,-79.394657],[-11.798717,-76.981827],[-12.286326,-74.568853],[-13.615783,-72.597617],[-15.587032,-71.268171],[-18.000017,-70.780567],[-20.412992,-71.268171],[-22.384230,-72.597617],[-23.713678,-74.568853],[-24.201283,-76.981827],[-23.713678,-79.394657],[-22.384230,-81.365566],[-20.412992,-82.694683],[-18.000017,-83.182137]]);
90   }
91 }
92
93 module poly_path4569(h)
94 {
95   scale([25.4/90, -25.4/90, 1]) union()
96   {
97     linear_extrude(height=h)
98       polygon([[49.153373,48.787113],[49.672105,50.815486],[50.568179,52.685939],[51.810334,54.346840],[53.367307,55.746560],[55.168384,56.814036],[57.124615,57.503023],[59.177385,57.799120],[61.268083,57.687923],[63.296454,57.169190],[65.166904,56.273115],[66.827802,55.030961],[68.227520,53.473989],[69.294995,51.672914],[69.983982,49.716687],[70.280079,47.663918],[70.168883,45.573223],[69.650152,43.544851],[68.754078,41.674400],[67.511925,40.013500],[65.954953,38.613780],[64.153878,37.546304],[62.197649,36.857316],[60.144880,36.561218],[58.054183,36.672413],[56.025811,37.191145],[54.155360,38.087218],[52.494459,39.329372],[51.094740,40.886344],[50.027264,42.687419],[49.338276,44.643647],[49.042178,46.696416],[49.153373,48.787113],[49.153373,48.787113]]);
99   }
100 }
101
102 module poly_path4583(h)
103 {
104   scale([25.4/90, -25.4/90, 1]) union()
105   {
106     linear_extrude(height=h)
107       polygon([[17.999983,-83.182137],[20.412968,-82.694683],[22.384217,-81.365566],[23.713674,-79.394657],[24.201283,-76.981827],[23.713674,-74.568853],[22.384217,-72.597617],[20.412968,-71.268171],[17.999983,-70.780567],[15.587007,-71.268171],[13.615768,-72.597617],[12.286319,-74.568853],[11.798713,-76.981827],[12.286319,-79.394657],[13.615768,-81.365566],[15.587007,-82.694683],[17.999983,-83.182137]]);
108   }
109 }
110
111 module buttons(h)
112 {
113
114 poly_path4571(h);
115 poly_path4573(h);
116 poly_path4575(h);
117 poly_path4579(h);
118 poly_path4577(h);
119 poly_path4565(h);
120 poly_path4563(h);
121 poly_path4567(h);
122 poly_path4581(h);
123 poly_path4569(h);
124 poly_path4583(h);
125 }
126
127 // buttons(5);
Contact me: dev (at) shalnoff (dot) com
PGP fingerprint: A6B8 3B23 6013 F18A 0C71 198B 83D8 C64D 917A 5717