switch.scad 480 B

1234567891011121314151617181920212223242526
  1. include <functions.scad>
  2. include <../config/global.scad>
  3. include <../config/switch.scad>
  4. function switch_size() = [
  5. 60, 30
  6. ];
  7. module switch_cutoff() {
  8. rounding = switch_rounding;
  9. width = switch_size().x;
  10. height = switch_size().y;
  11. module corner(vector) {
  12. translate(vector) {
  13. circle(r = rounding);
  14. }
  15. }
  16. hull() {
  17. for (count = square_vector(width, height, rounding)) {
  18. corner(count);
  19. }
  20. }
  21. }