example002.scad 418 B

1234567891011121314151617181920212223
  1. module example002()
  2. {
  3. intersection() {
  4. difference() {
  5. union() {
  6. cube([30, 30, 30], center = true);
  7. translate([0, 0, -25])
  8. cube([15, 15, 50], center = true);
  9. }
  10. union() {
  11. cube([50, 10, 10], center = true);
  12. cube([10, 50, 10], center = true);
  13. cube([10, 10, 50], center = true);
  14. }
  15. }
  16. translate([0, 0, 5])
  17. cylinder(h = 50, r1 = 20, r2 = 5, center = true);
  18. }
  19. }
  20. example002();