Fix up ridges

This commit is contained in:
XANTRONIX 2023-11-12 21:19:19 -05:00
parent a014766104
commit 02a787efd1

View file

@ -81,26 +81,25 @@ module keyboard_base_plate(pcb_width, pcb_length) {
}
}
module ridges() {
module ridges(width, height) {
horizontal = [
(bottom_length / 3),
(bottom_length / 3) * 2
];
vertical = [
(bottom_width / 4),
(bottom_width / 4) * 2,
(bottom_width / 4) * 3
(bottom_width / 3),
(bottom_width / 3) * 2
];
for (y = horizontal) {
side([0 - pcb_clearance_edge, y, 0],
[pcb_width, thickness * 2, pcb_clearance_edge]);
[pcb_width, width, height]);
}
for (x = vertical) {
side([x, 0 - pcb_clearance_edge, 0],
[thickness * 2, pcb_length, pcb_clearance_edge]);
[width, pcb_length, height]);
}
}
@ -226,7 +225,8 @@ module keyboard_base_plate(pcb_width, pcb_length) {
pcb_screw_hole_diameter);
}
ridges();
/* Ridges (for rigidity!) */
ridges(thickness * 2, pcb_clearance_bottom / 2);
}
keyboard_base_plate(pcb_width, pcb_length);