Skip to content

Instantly share code, notes, and snippets.

@alancnet
Created November 20, 2018 18:38
Show Gist options
  • Save alancnet/c06f2a823078fa88ac263a89eb8c2ea2 to your computer and use it in GitHub Desktop.
Save alancnet/c06f2a823078fa88ac263a89eb8c2ea2 to your computer and use it in GitHub Desktop.
$fn = 1000;
translate([1,0,0]) rotate([0,-90,0]) {
translate([0,-.5/$fn,0]) cube([1,1/$fn,1]);
intersection() {
union() {
for (i = [0:2/$fn:0.5])
translate([i,0,0])
cylinder(1, i, 0);
for (i = [0:2/$fn:.5])
translate([.5 + i,0,0])
cylinder(1, .5 - i, 0);
}
translate([0,0,1]) rotate([0,90]) cylinder(2, 1);
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment