initial commit
[ETG_Helmet] / ENCLOSURE / holes.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_circle5271(h)
13 {
14   scale([25.4/90, -25.4/90, 1]) union()
15   {
16     linear_extrude(height=h)
17       polygon([[58.327364,-35.887116],[58.721410,-34.358093],[59.391612,-32.980322],[61.417580,-30.783527],[64.119468,-29.506711],[65.634569,-29.278915],[67.211474,-29.359856],[68.698947,-29.740258],[70.070612,-30.397378],[71.288607,-31.308290],[72.315069,-32.450069],[73.097886,-33.770856],[73.603145,-35.205424],[73.820285,-36.710788],[73.738744,-38.243966],[73.358340,-39.731439],[72.701218,-41.103103],[71.790305,-42.321097],[70.648524,-43.347558],[69.327735,-44.130374],[67.893167,-44.635631],[66.387802,-44.852769],[64.854624,-44.771226],[63.325602,-44.377179],[61.947831,-43.706978],[59.751036,-41.681010],[58.474220,-38.979122],[58.246423,-37.464021],[58.327364,-35.887116],[58.327364,-35.887116]]);
18   }
19 }
20
21 module poly_circle5273(h)
22 {
23   scale([25.4/90, -25.4/90, 1]) union()
24   {
25     linear_extrude(height=h)
26       polygon([[68.387744,7.985034],[68.768147,9.472509],[69.425267,10.844175],[70.336180,12.062170],[71.477961,13.088633],[72.798750,13.871450],[74.233319,14.376709],[75.738685,14.593848],[77.271864,14.512304],[78.759339,14.131900],[80.131004,13.474778],[81.348999,12.563863],[82.375460,11.422081],[83.158276,10.101290],[83.663533,8.666720],[83.880669,7.161354],[83.799124,5.628174],[83.418720,4.140701],[82.761598,2.769037],[81.850685,1.551043],[80.708904,0.524582],[79.388115,-0.258234],[77.953547,-0.763491],[76.448182,-0.980629],[74.915004,-0.899086],[73.427531,-0.518681],[72.055866,0.138440],[70.837873,1.049354],[69.811412,2.191134],[69.028596,3.511923],[68.523338,4.946492],[68.306201,6.451856],[68.387744,7.985034],[68.387744,7.985034]]);
27   }
28 }
29
30 module poly_path5414(h)
31 {
32   scale([25.4/90, -25.4/90, 1]) union()
33   {
34     linear_extrude(height=h)
35       polygon([[1.500614,-81.880026],[3.568720,-81.462240],[5.258225,-80.323087],[6.397667,-78.633870],[6.815584,-76.565896],[6.397667,-74.497798],[5.258225,-72.808303],[3.568720,-71.668869],[1.500614,-71.250956],[-0.567485,-71.668869],[-2.256983,-72.808303],[-3.396421,-74.497798],[-3.814336,-76.565896],[-3.396421,-78.633870],[-2.256983,-80.323087],[-0.567485,-81.462240],[1.500614,-81.880026]]);
36   }
37 }
38
39 module poly_circle5275(h)
40 {
41   scale([25.4/90, -25.4/90, 1]) union()
42   {
43     linear_extrude(height=h)
44       polygon([[51.955434,49.888204],[52.335837,51.375681],[52.992958,52.747348],[53.903872,53.965344],[55.045654,54.991807],[56.366445,55.774624],[57.801016,56.279882],[59.306384,56.497019],[60.839564,56.415474],[62.327037,56.035070],[63.698702,55.377949],[64.916695,54.467035],[65.943156,53.325255],[66.725972,52.004466],[67.231230,50.569897],[67.448368,49.064532],[67.366824,47.531354],[66.986421,46.043880],[66.329301,44.672214],[65.418388,43.454218],[64.276608,42.427756],[62.955818,41.644939],[61.521249,41.139680],[60.015883,40.922541],[58.482704,41.004084],[56.995229,41.384487],[55.623563,42.041608],[54.405568,42.952521],[53.379105,44.094301],[52.596288,45.415090],[52.091030,46.849660],[51.873891,48.355025],[51.955434,49.888204],[51.955434,49.888204]]);
45   }
46 }
47
48 module poly_circle5279(h)
49 {
50   scale([25.4/90, -25.4/90, 1]) union()
51   {
52     linear_extrude(height=h)
53       polygon([[-30.232516,75.267094],[-29.852113,76.754568],[-29.194994,78.126233],[-28.284082,79.344227],[-27.142303,80.370689],[-25.821515,81.153506],[-24.386948,81.658766],[-22.881584,81.875906],[-21.348406,81.794364],[-19.860933,81.413960],[-18.489268,80.756839],[-17.271275,79.845925],[-16.244814,78.704145],[-15.461998,77.383356],[-14.956740,75.948787],[-14.739602,74.443422],[-14.821146,72.910244],[-15.201548,71.422771],[-15.858668,70.051106],[-16.769580,68.833112],[-17.911359,67.806650],[-19.232147,67.023833],[-20.666714,66.518573],[-22.172078,66.301433],[-23.705256,66.382974],[-25.192729,66.763379],[-26.564394,67.420500],[-27.782387,68.331414],[-28.808848,69.473194],[-29.591664,70.793983],[-30.096922,72.228552],[-30.314059,73.733916],[-30.232516,75.267094],[-30.232516,75.267094]]);
54   }
55 }
56
57 module poly_circle5281(h)
58 {
59   scale([25.4/90, -25.4/90, 1]) union()
60   {
61     linear_extrude(height=h)
62       polygon([[-67.402086,49.865884],[-67.021685,51.353361],[-66.364565,52.725028],[-65.453653,53.943025],[-64.311873,54.969489],[-62.991083,55.752308],[-61.556513,56.257568],[-60.051146,56.474707],[-58.517966,56.393164],[-57.030491,56.012760],[-55.658826,55.355638],[-54.440831,54.444723],[-53.414370,53.302941],[-52.631554,51.982150],[-52.126297,50.547580],[-51.909161,49.042214],[-51.990706,47.509034],[-52.371110,46.021561],[-53.028232,44.649897],[-53.939145,43.431903],[-55.080926,42.405442],[-56.401715,41.622626],[-57.836283,41.117369],[-59.341648,40.900231],[-60.874826,40.981774],[-62.403848,41.375821],[-63.781619,42.046022],[-65.978414,44.071990],[-67.255230,46.773878],[-67.483027,48.288979],[-67.402086,49.865884],[-67.402086,49.865884]]);
63   }
64 }
65
66 module poly_circle5285(h)
67 {
68   scale([25.4/90, -25.4/90, 1]) union()
69   {
70     linear_extrude(height=h)
71       polygon([[-73.715256,-35.903846],[-73.334851,-34.416371],[-72.677729,-33.044705],[-71.766815,-31.826711],[-70.625033,-30.800249],[-69.304242,-30.017434],[-67.869672,-29.512177],[-66.364305,-29.295040],[-64.831126,-29.376586],[-63.302103,-29.770632],[-61.924333,-30.440834],[-59.727538,-32.466802],[-58.450722,-35.168689],[-58.222925,-36.683790],[-58.303866,-38.260696],[-58.684268,-39.748169],[-59.341388,-41.119834],[-60.252300,-42.337828],[-61.394079,-43.364290],[-62.714867,-44.147107],[-64.149434,-44.652367],[-65.654798,-44.869507],[-67.187976,-44.787966],[-68.675452,-44.407564],[-70.047120,-43.750445],[-71.265117,-42.839532],[-72.291581,-41.697752],[-73.074399,-40.376962],[-73.579659,-38.942392],[-73.796799,-37.437026],[-73.715256,-35.903846],[-73.715256,-35.903846]]);
72   }
73 }
74
75 module poly_circle5277(h)
76 {
77   scale([25.4/90, -25.4/90, 1]) union()
78   {
79     linear_extrude(height=h)
80       polygon([[14.784954,75.271214],[15.165357,76.758688],[15.822476,78.130353],[16.733388,79.348347],[17.875167,80.374809],[19.195955,81.157626],[20.630522,81.662886],[22.135886,81.880026],[23.669064,81.798484],[25.156539,81.418082],[26.528205,80.760961],[27.746200,79.850048],[28.772663,78.708268],[29.555480,77.387478],[30.060739,75.952909],[30.277877,74.447544],[30.196334,72.914364],[29.815930,71.426891],[29.158808,70.055227],[28.247895,68.837233],[27.106114,67.810772],[25.785325,67.027956],[24.350757,66.522699],[22.845392,66.305561],[21.312214,66.387104],[19.783192,66.781151],[18.405421,67.451352],[16.208626,69.477320],[14.931810,72.179208],[14.704013,73.694309],[14.784954,75.271214],[14.784954,75.271214]]);
81   }
82 }
83
84 module poly_circle5283(h)
85 {
86   scale([25.4/90, -25.4/90, 1]) union()
87   {
88     linear_extrude(height=h)
89       polygon([[-83.799126,7.954734],[-83.405080,9.483757],[-82.734878,10.861528],[-80.708910,13.058323],[-78.007022,14.335139],[-76.491921,14.562935],[-74.915016,14.481994],[-73.427543,14.101592],[-72.055878,13.444472],[-70.837883,12.533560],[-69.811421,11.391781],[-69.028604,10.070994],[-68.523345,8.636426],[-68.306205,7.131062],[-68.387746,5.597884],[-68.768149,4.110410],[-69.425269,2.738744],[-70.336182,1.520748],[-71.477962,0.494286],[-72.798752,-0.288531],[-74.233321,-0.793790],[-75.738687,-1.010929],[-77.271866,-0.929386],[-78.759339,-0.548981],[-80.131004,0.108140],[-81.348997,1.019054],[-82.375458,2.160834],[-83.158274,3.481623],[-83.663532,4.916192],[-83.880669,6.421556],[-83.799126,7.954734]]);
90   }
91 }
92
93 module holes(h)
94 {
95
96 poly_circle5271(h);
97 poly_circle5273(h);
98 poly_path5414(h);
99 poly_circle5275(h);
100 poly_circle5279(h);
101 poly_circle5281(h);
102 poly_circle5285(h);
103 poly_circle5277(h);
104 poly_circle5283(h);
105 }
106
107 // holes(5);
Contact me: dev (at) shalnoff (dot) com
PGP fingerprint: A6B8 3B23 6013 F18A 0C71 198B 83D8 C64D 917A 5717