Last active
March 25, 2017 21:06
-
-
Save mpmckenna8/cdc9ae77aea8e5d7ad6465381e80aa40 to your computer and use it in GitHub Desktop.
Battery hack
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
// Thing to go into the battery part of a camera | |
railbuffer = 5; | |
wi = 34.8; | |
he = 40.56; | |
th = 5.7; | |
diam = 1.7; | |
spacing = 3; | |
mindi = .5; | |
module rails (i){ | |
translate([ railbuffer, -5 , 0]){ | |
rotate([ -90, 0, 0 ]) | |
translate([i*spacing, 0,0]){ | |
cylinder( h = he+10, d=diam, center=false); | |
} | |
} | |
translate([railbuffer+ spacing*i-mindi-diam/2,-mindi,-mindi]){ | |
cube(2); | |
} | |
} | |
difference(){ | |
minkowski(){ | |
cube([wi-mindi*2, he-mindi*2, th-mindi*2]); | |
$fn=50; | |
sphere(r= mindi); | |
} | |
for (a=[0:2]){ | |
rails(a); | |
} | |
} | |
color("purple") | |
for (a=[0:2]){ | |
// rails(a); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment