From 8a7bd8eb860bedfb7e8ad8938efcf811a3dfd599 Mon Sep 17 00:00:00 2001 From: XANTRONIX Development Date: Mon, 13 Nov 2023 00:44:16 -0500 Subject: Rename side() to panel() --- case/case.scad | 50 +++++++++++++++++++++++++------------------------- 1 file changed, 25 insertions(+), 25 deletions(-) (limited to 'case') 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, -- cgit v1.2.3