Skip to content

Instantly share code, notes, and snippets.

@fincham
Created April 27, 2017 23:55
Show Gist options
  • Save fincham/b816d588dc6ee0e25b03243cf26fc2cf to your computer and use it in GitHub Desktop.
Save fincham/b816d588dc6ee0e25b03243cf26fc2cf to your computer and use it in GitHub Desktop.
$fn = 50;
corner_radius = 7;
module lens(h) {
// lens is a cube([192.96, 110.76, 5]) with rounded corners
hull() {
cylinder(r=corner_radius, h=h);
translate([192.96, 110.76, 0]) cylinder(r=corner_radius, h=h);
translate([192.96, 0, 0]) cylinder(r=corner_radius, h=h);
translate([0, 110.76, 0]) cylinder(r=corner_radius, h=h);
}
}
// frame
difference() {
lens(3);
scale(0.95) translate([4.824, 2.769, -0.1]) lens(10);
}
// mounting screws
translate([20+11.89, 20.08+6.63, 0]) cube(10, 10, 5);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment