Rename side() to panel()
This commit is contained in:
parent
f6e75ebea1
commit
8a7bd8eb86
1 changed files with 25 additions and 25 deletions
|
@ -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,
|
||||
|
|
Loading…
Add table
Reference in a new issue