Skip to content

Instantly share code, notes, and snippets.

@fogleman
Created September 14, 2015 12:36
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save fogleman/7883ccb3e28b6c15e14e to your computer and use it in GitHub Desktop.
Save fogleman/7883ccb3e28b6c15e14e to your computer and use it in GitHub Desktop.
Thing
module pill() {
difference() {
hull() {
sphere(10, $fn=36);
translate([40, 0, 0])
sphere(10, $fn=36);
}
translate([0, 0, 14])
hull() {
sphere(5, $fn=36);
translate([40, 0, 0])
sphere(5, $fn=36);
}
}
}
module hole() {
rotate([0, 90, 0])
cylinder(r=5, h=100, center=true, $fn=36);
}
difference() {
difference() {
union() {
for (i = [0 : 60 : 360]) {
rotate([0, 0, i])
pill();
}
sphere(r=14, $fn=36);
}
union() {
for (i = [0 : 60 : 360]) {
rotate([0, 0, i])
hole();
}
}
sphere(r=10, $fn=36);
cylinder(h=100, r=5, center=true, $fn=36);
}
translate([0, 0, -10])
cube([100, 100, 20], center=true);
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment