]> www.fi.muni.cz Git - things.git/blob - kos-clip.scad
switch holder.scad
[things.git] / kos-clip.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_path857(h)
13 {
14   // scale([25.4/90, -25.4/90, 1]) union()
15   scale([1, 1, 1]) union()
16   {
17     linear_extrude(height=h)
18       polygon([[-2.750000,-16.724610],[-2.750000,-9.724610],[-7.750000,-9.724610],[-7.750000,-2.724610],[-2.750000,-2.724610],[-2.750000,16.275390],[-0.750000,16.275390],[-0.750000,-4.724610],[-5.750000,-4.724610],[-5.750000,-7.724610],[-0.750000,-7.724610],[-0.750000,-14.724610],[2.250000,-14.724610],[2.970700,-13.972657],[4.298830,-11.310548],[5.327809,-7.843798],[5.750000,-4.712891],[5.256551,-1.989560],[4.078120,0.861328],[2.812775,3.920845],[2.391213,5.561659],[2.250000,7.294921],[2.775304,10.306291],[3.843750,13.332031],[5.357420,16.724610],[7.142580,15.826171],[5.701170,12.589843],[4.712781,9.724587],[4.250000,7.255859],[4.728432,4.536565],[5.900390,1.689452],[7.170041,-1.366124],[7.598419,-3.004760],[7.750000,-4.736329],[7.288985,-8.289804],[6.166020,-12.025391],[4.609380,-15.121094],[3.620385,-16.237275],[2.250000,-16.724610],[-2.750000,-16.724610]]);
19   }
20 }
21
22 intersection() {
23 translate([-100, -100, 0]) cube([200, 200, 15]);
24 rotate([0, 30, 0])
25 translate([0, 0, -10])
26 poly_path857(50);
27 }