plate.scad 610 B

123456789101112131415161718192021222324252627282930
  1. include <../config/all.scad>
  2. include <ATX.scad>
  3. module plate_shape() {
  4. module corner(x, y) {
  5. translate([x, y]) {
  6. circle(r = radius);
  7. }
  8. }
  9. module base() {
  10. move_x = motherboard_size.x / 2 - radius;
  11. move_y = motherboard_size.y / 2 - radius;
  12. hull() {
  13. corner(move_x, move_y);
  14. corner(-move_x, move_y);
  15. corner(move_x, -move_y);
  16. corner(-move_x, -move_y);
  17. }
  18. }
  19. base();
  20. }
  21. module plate_object() {
  22. linear_extrude(height = shape_thickness, center = true) {
  23. plate_shape();
  24. }
  25. }