initial commit
[ETG_Helmet] / ENCLOSURE / microusb_frame.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_rect4469(h)
13 {
14   scale([25.4/90, -25.4/90, 1]) union()
15   {
16     linear_extrude(height=h)
17       polygon([[-17.200028,-7.919175],[17.200028,-7.919175],[18.799918,-7.758842],[20.288259,-7.298756],[22.804825,-5.604792],[24.498786,-3.088225],[24.958872,-1.599884],[25.119204,0.000005],[24.958872,1.599894],[24.498786,3.088234],[22.804825,5.604797],[20.288259,7.298757],[18.799918,7.758843],[17.200028,7.919175],[-17.200028,7.919175],[-18.799918,7.758843],[-20.288259,7.298757],[-22.804825,5.604797],[-24.498786,3.088234],[-24.958872,1.599894],[-25.119204,0.000005],[-24.958872,-1.599884],[-24.498786,-3.088225],[-22.804825,-5.604792],[-20.288259,-7.298756],[-18.799918,-7.758842],[-17.200028,-7.919175]]);
18   }
19 }
20
21 module microusb_frame(h)
22 {
23
24 poly_rect4469(h);
25 }
26
27 // microusb_frame(5);
Contact me: dev (at) shalnoff (dot) com
PGP fingerprint: A6B8 3B23 6013 F18A 0C71 198B 83D8 C64D 917A 5717