Created
July 21, 2017 01:53
-
-
Save raster/c98a4cf12c7a15aece29fe9dd6cdcf4c to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/* | |
* Volt Meter Mount | |
* | |
* | |
*/ | |
mount(); | |
module mount() { | |
difference() { | |
union() { | |
// main body | |
translate([0,0,0]) | |
cylinder(d=63.25, h=20, $fn=25, center=true); | |
// top part | |
translate([0,0,8.5]) | |
cylinder(d=69.25, h=3, $fn=100, center=true); | |
// mounting ears | |
translate([0,0,7]) | |
roundedrect(); | |
// cube([82,10,3],center=true); | |
} | |
// meter hole | |
translate([0,0,0]) | |
cube([46,27,30],center=true); | |
// mount hole left | |
translate([-37,0,5]) | |
cylinder(d=3, h=10, $fn=200); | |
// mount hole right | |
translate([37,0,5]) | |
cylinder(d=3, h=10, $fn=200); | |
} | |
} | |
module roundedrect() { | |
hull() { | |
translate([-37,0,0]) | |
cylinder(d=10, h=3, $fn=100); | |
translate([37,0,0]) | |
cylinder(d=10, h=3, $fn=100); | |
} | |
} | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment