initial commit
[ETG_Helmet] / ENCLOSURE / underButtons.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_path4546(h)
13 {
14   scale([25.4/90, -25.4/90, 1]) union()
15   {
16     linear_extrude(height=h)
17       polygon([[62.083096,-9.556603],[62.774739,-6.852105],[63.969505,-4.358170],[65.625711,-2.143637],[67.701674,-0.277344],[70.103109,1.145956],[72.711414,2.064605],[75.448440,2.459400],[78.236036,2.311137],[80.940531,1.619495],[83.434466,0.424729],[85.648999,-1.231476],[87.515291,-3.307440],[88.938592,-5.708874],[89.857241,-8.317180],[90.252037,-11.054206],[90.103776,-13.841803],[89.412131,-16.546298],[88.217364,-19.040232],[86.561157,-21.254764],[84.485194,-23.121054],[82.083760,-24.544354],[79.475455,-25.463002],[76.738430,-25.857796],[73.950836,-25.709533],[71.246341,-25.017890],[68.752408,-23.823125],[66.537876,-22.166921],[64.671584,-20.090959],[63.248283,-17.689526],[62.329633,-15.081222],[61.934836,-12.344197],[62.083096,-9.556603]]);
18   }
19 }
20
21 module poly_path4552(h)
22 {
23   scale([25.4/90, -25.4/90, 1]) union()
24   {
25     linear_extrude(height=h)
26       polygon([[-36.537169,57.725457],[-35.845528,60.429952],[-34.650764,62.923885],[-32.994560,65.138418],[-30.918598,67.004711],[-28.517165,68.428013],[-25.908860,69.346665],[-23.171834,69.741465],[-20.384237,69.593207],[-17.679739,68.901564],[-15.185802,67.706798],[-12.971267,66.050592],[-11.104973,63.974628],[-9.681672,61.573194],[-8.763022,58.964888],[-8.368227,56.227863],[-8.516489,53.440267],[-9.208131,50.735773],[-10.402895,48.241840],[-12.059099,46.027307],[-14.135061,44.161014],[-16.536494,42.737712],[-19.144799,41.819059],[-21.881825,41.424260],[-24.669421,41.572517],[-27.373920,42.264161],[-29.867857,43.458927],[-32.082392,45.115133],[-33.948685,47.191097],[-35.371987,49.592531],[-36.290637,52.200836],[-36.685432,54.937862],[-36.537169,57.725457]]);
27   }
28 }
29
30 module poly_path4548(h)
31 {
32   scale([25.4/90, -25.4/90, 1]) union()
33   {
34     linear_extrude(height=h)
35       polygon([[45.650786,32.346567],[46.342428,35.051066],[47.537193,37.545003],[49.193400,39.759539],[51.269365,41.625833],[53.670801,43.049135],[56.279109,43.967785],[59.016137,44.362580],[61.803736,44.214317],[64.508232,43.522674],[67.002167,42.327908],[69.216700,40.671702],[71.082992,38.595738],[72.506292,36.194304],[73.424942,33.585999],[73.819737,30.848973],[73.671476,28.061377],[72.979834,25.356880],[71.785069,22.862944],[70.128863,20.648410],[68.052900,18.782116],[65.651465,17.358814],[63.043159,16.440163],[60.306132,16.045367],[57.518536,16.193627],[54.814038,16.885270],[52.320101,18.080035],[50.105567,19.736240],[48.239273,21.812203],[46.815971,24.213638],[45.897320,26.821944],[45.502524,29.558971],[45.650786,32.346567]]);
36   }
37 }
38
39 module poly_path4558(h)
40 {
41   scale([25.4/90, -25.4/90, 1]) union()
42   {
43     linear_extrude(height=h)
44       polygon([[-80.019900,-53.445483],[-79.328257,-50.740985],[-78.133491,-48.247049],[-76.477284,-46.032515],[-74.401319,-44.166222],[-71.999883,-42.742921],[-69.391576,-41.824273],[-66.654548,-41.429479],[-63.866951,-41.577743],[-61.162457,-42.269386],[-58.668525,-43.464152],[-56.453994,-45.120357],[-54.587703,-47.196319],[-53.164403,-49.597751],[-52.245754,-52.206055],[-51.850958,-54.943079],[-51.999218,-57.730673],[-52.715663,-60.510713],[-53.934209,-63.015751],[-55.589900,-65.198062],[-57.617783,-67.009924],[-59.952902,-68.403615],[-62.530302,-69.331410],[-65.285030,-69.745587],[-68.152129,-69.598423],[-70.856631,-68.906784],[-73.350570,-67.712022],[-75.565109,-66.055818],[-77.431406,-63.979854],[-78.854711,-61.578419],[-79.773364,-58.970111],[-80.168162,-56.233082],[-80.019900,-53.445483],[-80.019900,-53.445483]]);
45   }
46 }
47
48 module poly_path4550(h)
49 {
50   scale([25.4/90, -25.4/90, 1]) union()
51   {
52     linear_extrude(height=h)
53       polygon([[8.480306,57.729577],[9.171947,60.434074],[10.366711,62.928009],[12.022915,65.142543],[14.098877,67.008836],[16.500310,68.432138],[19.108615,69.350789],[21.845640,69.745587],[24.633236,69.597327],[27.337733,68.905686],[29.831669,67.710921],[32.046204,66.054715],[33.912498,63.978752],[35.335800,61.577317],[36.254451,58.969011],[36.649247,56.231984],[36.500986,53.444387],[35.809342,50.739891],[34.614576,48.245957],[32.958370,46.031423],[30.882407,44.165131],[28.480973,42.741831],[25.872667,41.823181],[23.135641,41.428386],[20.348046,41.576647],[17.643551,42.268291],[15.149617,43.463056],[12.935085,45.119260],[11.068793,47.195222],[9.645493,49.596655],[8.726843,52.204959],[8.332046,54.941983],[8.480306,57.729577],[8.480306,57.729577]]);
54   }
55 }
56
57 module poly_path4556(h)
58 {
59   scale([25.4/90, -25.4/90, 1]) union()
60   {
61     linear_extrude(height=h)
62       polygon([[-90.103775,-9.586903],[-89.387328,-6.806863],[-88.168780,-4.301827],[-86.513087,-2.119517],[-84.485203,-0.307656],[-82.150083,1.086033],[-79.572682,2.013827],[-76.817954,2.428003],[-73.950853,2.280837],[-71.246355,1.589197],[-68.752419,0.394433],[-66.537883,-1.261770],[-64.671588,-3.337732],[-63.248284,-5.739165],[-62.329632,-8.347470],[-61.934833,-11.084496],[-62.083092,-13.872093],[-62.774735,-16.576590],[-63.969500,-19.070525],[-65.625705,-21.285059],[-67.701668,-23.151353],[-70.103103,-24.574655],[-72.711409,-25.493306],[-75.448436,-25.888103],[-78.236032,-25.739843],[-80.940529,-25.048199],[-83.434464,-23.853433],[-85.648998,-22.197227],[-87.515291,-20.121264],[-88.938591,-17.719829],[-89.857241,-15.111524],[-90.252037,-12.374498],[-90.103775,-9.586903],[-90.103775,-9.586903]]);
63   }
64 }
65
66 module poly_path4554(h)
67 {
68   scale([25.4/90, -25.4/90, 1]) union()
69   {
70     linear_extrude(height=h)
71       polygon([[-73.706736,32.324247],[-73.015096,35.028746],[-71.820332,37.522683],[-70.164127,39.737220],[-68.088163,41.603515],[-65.686728,43.026818],[-63.078421,43.945470],[-60.341393,44.340268],[-57.553794,44.192007],[-54.849297,43.500363],[-52.355361,42.305596],[-50.140827,40.649389],[-48.274535,38.573424],[-46.851234,36.171988],[-45.932585,33.563681],[-45.537791,30.826654],[-45.686054,28.039057],[-46.377698,25.334562],[-47.572464,22.840628],[-49.228670,20.626096],[-51.304634,18.759804],[-53.706068,17.336503],[-56.314373,16.417853],[-59.051399,16.023057],[-61.838994,16.171317],[-64.619036,16.887765],[-67.124074,18.106314],[-69.306386,19.762008],[-71.118248,21.789893],[-72.511937,24.125015],[-73.439730,26.702417],[-73.853904,29.457146],[-73.706736,32.324247],[-73.706736,32.324247]]);
72   }
73 }
74
75 module poly_path4544(h)
76 {
77   scale([25.4/90, -25.4/90, 1]) union()
78   {
79     linear_extrude(height=h)
80       polygon([[52.022716,-53.428753],[52.739164,-50.648709],[53.957713,-48.143670],[55.613408,-45.961357],[57.641293,-44.149495],[59.976414,-42.755805],[62.553816,-41.828011],[65.308545,-41.413836],[68.175646,-41.561003],[70.955687,-42.277450],[73.460725,-43.495999],[75.643037,-45.151693],[77.454899,-47.179580],[78.848589,-49.514702],[79.776384,-52.092107],[80.190561,-54.846839],[80.043396,-57.713943],[79.351751,-60.418441],[78.156984,-62.912377],[76.500778,-65.126911],[74.424815,-66.993204],[72.023381,-68.416506],[69.415076,-69.335157],[66.678051,-69.729953],[63.890456,-69.581693],[61.110416,-68.865243],[58.605379,-67.646694],[56.423069,-65.990999],[54.611208,-63.963112],[53.217519,-61.627990],[52.289726,-59.050586],[51.875550,-56.295855],[52.022716,-53.428753],[52.022716,-53.428753]]);
81   }
82 }
83
84 module underButtons(h)
85 {
86
87 poly_path4546(h);
88 poly_path4552(h);
89 poly_path4548(h);
90 poly_path4558(h);
91 poly_path4550(h);
92 poly_path4556(h);
93 poly_path4554(h);
94 poly_path4544(h);
95 }
96
Contact me: dev (at) shalnoff (dot) com
PGP fingerprint: A6B8 3B23 6013 F18A 0C71 198B 83D8 C64D 917A 5717