]> www.fi.muni.cz Git - things.git/blob - vesak.scad
switch holder.scad
[things.git] / vesak.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_path4140(h)
13 {
14   scale([25.4/90, -25.4/90, 1]) union()
15   {
16     linear_extrude(height=h)
17       polygon([[-29.634080,-65.579660]]);
18   }
19 }
20
21 module poly_path4138(h)
22 {
23   scale([25.4/90, -25.4/90, 1]) union()
24   {
25     linear_extrude(height=h)
26       polygon([[-24.802810,-97.441300],[-24.803570,-83.267540],[-25.001279,-81.241391],[-25.645544,-79.306694],[-26.672990,-77.451125],[-28.020238,-75.662359],[-31.420634,-72.235936],[-35.339720,-68.928829],[-39.270479,-65.642440],[-42.705898,-62.278172],[-44.079411,-60.536021],[-45.138959,-58.737428],[-45.821165,-56.870065],[-46.062650,-54.921610],[-46.063340,-37.205040],[-35.432730,-37.205740],[-35.432730,-51.379560],[-24.803570,-51.378860],[-24.803570,51.376850],[-25.001279,53.403013],[-25.645546,55.337752],[-26.672994,57.193387],[-28.020248,58.982239],[-31.420671,62.408885],[-35.339806,65.716260],[-39.270648,69.002937],[-42.706189,72.367488],[-44.079782,74.109770],[-45.139422,75.908485],[-45.821733,77.775955],[-46.063340,79.724500],[-46.063340,97.441300],[-35.432730,97.440600],[-35.432730,83.266770],[-24.803570,83.267470],[-24.802810,97.440600],[-20.124537,97.101494],[-16.608911,96.056495],[-14.089841,94.264079],[-12.401234,91.682724],[-11.376996,88.270906],[-10.851037,83.987103],[-10.629580,72.637450],[-10.466948,67.716202],[-9.992892,62.914982],[-8.193557,53.654458],[-5.397666,44.819547],[-1.771313,36.373915],[2.519411,28.281230],[7.308412,20.505158],[12.429598,13.009368],[17.716876,5.757526],[28.125341,-8.159643],[32.914343,-14.897637],[37.205067,-21.537013],[40.831421,-28.114105],[43.627313,-34.665244],[45.426650,-41.226765],[45.900707,-44.522773],[46.063340,-47.835000],[45.900707,-49.474298],[45.426650,-50.444036],[44.661932,-50.801308],[43.627313,-50.603208],[40.831421,-48.769269],[37.205067,-45.398974],[28.125341,-35.876335],[23.004155,-30.637500],[17.716876,-25.689326],[12.429598,-21.488569],[7.308412,-18.491983],[4.862007,-17.587989],[2.519411,-17.156322],[0.301384,-17.254074],[-1.771313,-17.938340],[-3.677916,-19.266215],[-5.397666,-21.294793],[-6.909800,-24.081168],[-8.193557,-27.682434],[-9.228174,-32.155686],[-9.992892,-37.558018],[-10.466948,-43.946525],[-10.629580,-51.378300],[-10.808155,-73.464670],[-11.296592,-81.412903],[-12.286881,-87.539060],[-13.025474,-89.975397],[-13.955834,-92.024059],[-15.100064,-93.707662],[-16.480265,-95.048820],[-18.118538,-96.070148],[-20.036986,-96.794261],[-24.802810,-97.441300]]);
27   }
28 }
29
30 poly_path4140(9.5);
31 poly_path4138(9.5);