example016.scad 712 B

12345678910111213141516171819202122232425262728293031323334353637
  1. // example016.stl is derived from Mblock.stl
  2. // (c) 2009 Will Langford licensed under
  3. // the Creative Commons - GNU GPL license.
  4. // http://www.thingiverse.com/thing:753
  5. //
  6. // Jonas Pfeil converted the file to binary
  7. // STL and duplicated its content.
  8. module blk1() {
  9. cube([ 65, 28, 28 ], center = true);
  10. }
  11. module blk2() {
  12. difference() {
  13. translate([ 0, 0, 7.5 ])
  14. cube([ 60, 28, 14 ], center = true);
  15. cube([ 8, 32, 32 ], center = true);
  16. }
  17. }
  18. module chop() {
  19. translate([ -14, 0, 0 ])
  20. import(file = "example016.stl", convexity = 12);
  21. }
  22. difference() {
  23. blk1();
  24. for (alpha = [0, 90, 180, 270]) {
  25. rotate(alpha, [ 1, 0, 0]) render(convexity = 12)
  26. difference() {
  27. blk2();
  28. chop();
  29. }
  30. }
  31. }