initial commit
[ETG_Helmet] / ENCLOSURE / velcro3.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_path4547(h)
13 {
14   scale([25.4/90, -25.4/90, 1]) union()
15   {
16     difference()
17     {
18        linear_extrude(height=h)
19          polygon([[-0.016597,-59.363285],[-6.847229,-59.172743],[-13.663515,-58.661429],[-20.452598,-57.829351],[-27.201623,-56.676516],[-33.897733,-55.202931],[-40.528072,-53.408605],[-47.079785,-51.293544],[-53.540014,-48.857756],[-59.895905,-46.101249],[-66.134602,-43.024029],[-72.243247,-39.626105],[-78.208985,-35.907484],[-84.018960,-31.868172],[-89.660316,-27.508179],[-95.120197,-22.827511],[-100.385747,-17.826175],[-103.614137,-14.352194],[-106.417267,-10.638241],[-108.794877,-6.718154],[-110.746703,-2.625768],[-112.272485,1.605078],[-113.371961,5.940549],[-114.044869,10.346807],[-114.290947,14.790015],[-114.109934,19.236337],[-113.501568,23.651935],[-112.465587,28.002973],[-111.001731,32.255613],[-109.109736,36.376020],[-106.789341,40.330355],[-104.040286,44.084782],[-100.862307,47.605465],[-97.383058,50.722950],[-93.757795,53.298832],[-90.006442,55.367090],[-86.148923,56.961700],[-82.205162,58.116639],[-78.195083,58.865885],[-74.138610,59.243415],[-70.055667,59.283205],[-61.871564,58.545705],[-53.634481,56.997079],[-45.377033,54.929406],[-37.131837,52.634765],[-27.681967,50.706127],[-18.141908,49.299341],[-8.582727,48.428408],[0.924511,48.107327],[10.308738,48.350102],[19.498888,49.170732],[28.423896,50.583220],[37.012693,52.601565],[45.591106,54.966391],[54.020893,57.073795],[62.309373,58.635514],[70.463863,59.363285],[74.496456,59.310782],[78.493854,58.917261],[82.440398,58.150771],[86.320432,56.979360],[90.118297,55.371076],[93.818336,53.293966],[97.404890,50.716080],[100.862303,47.605465],[104.040284,44.084782],[106.789341,40.330355],[109.109736,36.376020],[111.001731,32.255613],[112.465588,28.002973],[113.501569,23.651935],[114.109934,19.236337],[114.290947,14.790015],[114.044868,10.346807],[113.371960,5.940549],[112.272483,1.605078],[110.746701,-2.625768],[108.794874,-6.718154],[106.417264,-10.638241],[103.614133,-14.352194],[100.385743,-17.826175],[95.120195,-22.827511],[89.660315,-27.508179],[84.018960,-31.868172],[78.208986,-35.907484],[72.243248,-39.626105],[66.134603,-43.024029],[59.895907,-46.101249],[53.540016,-48.857756],[47.079786,-51.293544],[40.528073,-53.408605],[33.897734,-55.202931],[27.201624,-56.676516],[20.452600,-57.829351],[13.663518,-58.661429],[6.847234,-59.172743],[0.016603,-59.363285],[-0.016597,-59.363285]]);
20        translate([0, 0, -fudge])
21          linear_extrude(height=h+2*fudge)
22            polygon([[0.001003,-52.277345],[6.499470,-52.095535],[12.982808,-51.609104],[19.438943,-50.818016],[25.855800,-49.722232],[32.221306,-48.321715],[38.523386,-46.616429],[44.749966,-44.606334],[50.888972,-42.291395],[56.928329,-39.671573],[62.855964,-36.746831],[68.659802,-33.517132],[74.327769,-29.982438],[79.847791,-26.142712],[85.207793,-21.997916],[90.395702,-17.548013],[95.399443,-12.792965],[95.436543,-12.755865],[98.179293,-9.809211],[100.560792,-6.662882],[102.580824,-3.345018],[104.239177,0.116243],[105.535636,3.692761],[106.469989,7.356398],[107.042021,11.079015],[107.251518,14.832473],[107.098267,18.588632],[106.582054,22.319356],[105.702665,25.996503],[104.459887,29.591936],[102.853505,33.077516],[100.883307,36.425103],[98.549077,39.606559],[95.850603,42.593745],[92.945370,45.230068],[89.994491,47.389334],[86.985837,49.106376],[83.907277,50.416025],[80.746682,51.353114],[77.491921,51.952474],[70.651383,52.277335],[63.335052,51.606789],[55.580966,50.135275],[38.903343,45.773425],[29.782606,43.625286],[20.361482,42.126079],[10.706233,41.257554],[0.883123,41.001458],[-9.041586,41.339538],[-19.001630,42.253545],[-28.930748,43.725224],[-38.762677,45.736325],[-38.915017,45.775425],[-55.132554,50.047033],[-62.867299,51.515209],[-70.258767,52.199245],[-77.227507,51.892878],[-80.551670,51.302548],[-83.778368,50.374600],[-86.914603,49.074391],[-89.967379,47.367280],[-92.943699,45.218625],[-95.850567,42.593785],[-98.549039,39.606599],[-100.883267,36.425143],[-102.853465,33.077556],[-104.459846,29.591976],[-105.702625,25.996543],[-106.582013,22.319396],[-107.098227,18.588672],[-107.251478,14.832513],[-107.041981,11.079055],[-106.469950,7.356438],[-105.535598,3.692801],[-104.239139,0.116283],[-102.580787,-3.344978],[-100.560755,-6.662842],[-98.179257,-9.809171],[-95.436507,-12.755825],[-95.399407,-12.792925],[-90.395570,-17.548059],[-85.207559,-21.998036],[-79.847449,-26.142895],[-74.327314,-29.982672],[-68.659229,-33.517406],[-62.855269,-36.747133],[-56.927510,-39.671892],[-50.888024,-42.291719],[-44.748889,-44.606652],[-38.522178,-46.616729],[-32.219966,-48.321987],[-25.854328,-49.722463],[-19.437340,-50.818196],[-12.981075,-51.609222],[-6.497609,-52.095579],[0.000983,-52.277305]]);
23     }
24   }
25 }
26
27 module velcro(h)
28 {
29
30 poly_path4547(h);
31 }
32
33 // velcro3(5);
Contact me: dev (at) shalnoff (dot) com
PGP fingerprint: A6B8 3B23 6013 F18A 0C71 198B 83D8 C64D 917A 5717