example001.scad 397 B

1234567891011121314151617181920212223242526
  1. module example001()
  2. {
  3. function r_from_dia(d) = d / 2;
  4. module rotcy(rot, r, h) {
  5. rotate(90, rot)
  6. cylinder(r = r, h = h, center = true);
  7. }
  8. difference() {
  9. sphere(r = r_from_dia(size));
  10. rotcy([0, 0, 0], cy_r, cy_h);
  11. rotcy([1, 0, 0], cy_r, cy_h);
  12. rotcy([0, 1, 0], cy_r, cy_h);
  13. }
  14. size = 50;
  15. hole = 25;
  16. cy_r = r_from_dia(hole);
  17. cy_h = r_from_dia(size * 2.5);
  18. }
  19. example001();