summaryrefslogtreecommitdiffstats
path: root/case
diff options
context:
space:
mode:
Diffstat (limited to 'case')
-rw-r--r--case/case.scad50
1 files changed, 25 insertions, 25 deletions
diff --git a/case/case.scad b/case/case.scad
index f027cec..84aa83e 100644
--- a/case/case.scad
+++ b/case/case.scad
@@ -58,7 +58,7 @@ module keyboard_base_plate(pcb_width, pcb_length) {
}
}
- module side(translation, dimensions) {
+ module panel(translation, dimensions) {
color(case_color)
translate(translation)
linear_extrude(dimensions[2])
@@ -97,39 +97,39 @@ module keyboard_base_plate(pcb_width, pcb_length) {
];
for (y = horizontal) {
- side([0 - pcb_clearance_edge, y, 0],
+ panel([0 - pcb_clearance_edge, y, 0],
[bottom_width, width, height]);
}
for (x = vertical) {
- side([x, 0 - pcb_clearance_edge, 0],
+ panel([x, 0 - pcb_clearance_edge, 0],
[width, bottom_length, height]);
}
}
/* Upper wall */
- side([-pcb_clearance_edge - thickness + corner_radius,
- pcb_clearance_edge + pcb_length,
- -thickness + corner_radius],
- [wall_width, thickness, wall_height + thickness - corner_radius]);
+ panel([-pcb_clearance_edge - thickness + corner_radius,
+ pcb_clearance_edge + pcb_length,
+ -thickness + corner_radius],
+ [wall_width, thickness, wall_height + thickness - corner_radius]);
/* Right wall */
- side([ pcb_clearance_edge + pcb_width,
- -pcb_clearance_edge - thickness + corner_radius,
- -thickness + corner_radius],
- [thickness, wall_length, wall_height + thickness - corner_radius]);
+ panel([ pcb_clearance_edge + pcb_width,
+ -pcb_clearance_edge - thickness + corner_radius,
+ -thickness + corner_radius],
+ [thickness, wall_length, wall_height + thickness - corner_radius]);
/* Lower wall */
- side([-pcb_clearance_edge - thickness + corner_radius,
- -pcb_clearance_edge - thickness,
- -thickness + corner_radius],
- [wall_width, thickness, wall_height + thickness - corner_radius]);
+ panel([-pcb_clearance_edge - thickness + corner_radius,
+ -pcb_clearance_edge - thickness,
+ -thickness + corner_radius],
+ [wall_width, thickness, wall_height + thickness - corner_radius]);
/* Left wall */
- side([-pcb_clearance_edge - thickness,
- -pcb_clearance_edge - thickness + corner_radius,
- -thickness + corner_radius],
- [thickness, wall_length, wall_height + thickness - corner_radius]);
+ panel([-pcb_clearance_edge - thickness,
+ -pcb_clearance_edge - thickness + corner_radius,
+ -thickness + corner_radius],
+ [thickness, wall_length, wall_height + thickness - corner_radius]);
/* Upper right wall corner */
wall_corner([thickness + pcb_clearance_edge + pcb_width - corner_radius,
@@ -164,12 +164,12 @@ module keyboard_base_plate(pcb_width, pcb_length) {
wall_height + thickness - corner_radius);
/* Bottom plate */
- side([-pcb_clearance_edge - thickness + corner_radius,
- -pcb_clearance_edge - thickness + corner_radius,
- -thickness],
- [bottom_width + 2 * thickness - 2 * corner_radius,
- bottom_length + 2 * thickness - 2 * corner_radius,
- thickness]);
+ panel([-pcb_clearance_edge - thickness + corner_radius,
+ -pcb_clearance_edge - thickness + corner_radius,
+ -thickness],
+ [bottom_width + 2 * thickness - 2 * corner_radius,
+ bottom_length + 2 * thickness - 2 * corner_radius,
+ thickness]);
/* Upper edge */
round_edge([-pcb_clearance_edge - thickness + corner_radius,