| 1234567891011121314151617181920212223242526 |
- include <functions.scad>
- include <../config/global.scad>
- include <../config/switch.scad>
- function switch_size() = [
- 60, 30
- ];
- module switch_cutoff() {
- rounding = switch_rounding;
- width = switch_size().x;
- height = switch_size().y;
- module corner(vector) {
- translate(vector) {
- circle(r = rounding);
- }
- }
- hull() {
- for (count = square_vector(width, height, rounding)) {
- corner(count);
- }
- }
- }
|