summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorXANTRONIX Development2023-11-13 00:44:16 -0500
committerXANTRONIX Development2023-11-13 00:44:16 -0500
commit8a7bd8eb860bedfb7e8ad8938efcf811a3dfd599 (patch)
tree798bc58ba2d28f167a14d69da11b22afdf40a2e8
parentf6e75ebea1fa7fbd82704ccaed4de88b89cf3197 (diff)
downloadxantronix-z32-8a7bd8eb860bedfb7e8ad8938efcf811a3dfd599.tar.gz
xantronix-z32-8a7bd8eb860bedfb7e8ad8938efcf811a3dfd599.tar.bz2
xantronix-z32-8a7bd8eb860bedfb7e8ad8938efcf811a3dfd599.zip
Rename side() to panel()
-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,