Skip to content

Instantly share code, notes, and snippets.

@shaina7837
Created March 16, 2014 16:23
Show Gist options
  • Save shaina7837/9585787 to your computer and use it in GitHub Desktop.
Save shaina7837/9585787 to your computer and use it in GitHub Desktop.
module example001()
{
function r_from_dia(d) = d / 2;
module rotcy(rot, r, h) {
rotate(90, rot)
cylinder(r = r, h = h, center = true);
}
difference() {
sphere(r = r_from_dia(size));
rotcy([0, 0, 0], cy_r, cy_h);
rotcy([1, 0, 0], cy_r, cy_h);
rotcy([0, 1, 0], cy_r, cy_h);
}
size = 50;
hole = 25;
cy_r = r_from_dia(hole);
cy_h = r_from_dia(size * 2.5);
}
example001();
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment