]> www.fi.muni.cz Git - things.git/blob - skysurfer-motor-cover.scad
Replacement motor cover for Sky Surfer 1400
[things.git] / skysurfer-motor-cover.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_path4306(h)
13 {
14     // linear_extrude(height=5)
15     rotate_extrude(angle = 210) rotate([0, 0, 90])
16         translate([35,-13, 0]){
17       polygon([[-35.333988,-11.375980],[-35.388672,-10.879880],[-19.400388,-8.881840],[-7.386879,-6.756644],[4.589842,-4.381840],[11.716397,-2.942169],[19.560552,-0.889650],[22.772022,0.412676],[26.967856,2.622476],[31.177810,5.551311],[32.984881,7.226479],[34.431642,9.010740],[34.818362,10.416990],[34.888672,11.375980],[35.388672,11.368160],[35.314452,10.356450],[34.845702,8.733400],[33.349661,6.878547],[31.503835,5.154443],[27.236641,2.175499],[22.991750,-0.049398],[19.716792,-1.366210],[11.819819,-3.433821],[4.687502,-4.874020],[-7.291714,-7.247646],[-19.322268,-9.374020],[-35.333988,-11.375980]]);
18   }
19 }
20
21 infty = 200;
22 difference() {
23         poly_path4306();
24         translate([-infty/2, -infty/2, -infty]) cube(infty);
25         rotate([7, 0, 0])
26         translate([-infty/2, 10, -infty/2]) cube(infty);
27 }