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)
|
color(case_color)
|
||||||
translate(translation)
|
translate(translation)
|
||||||
linear_extrude(dimensions[2])
|
linear_extrude(dimensions[2])
|
||||||
|
@ -97,36 +97,36 @@ module keyboard_base_plate(pcb_width, pcb_length) {
|
||||||
];
|
];
|
||||||
|
|
||||||
for (y = horizontal) {
|
for (y = horizontal) {
|
||||||
side([0 - pcb_clearance_edge, y, 0],
|
panel([0 - pcb_clearance_edge, y, 0],
|
||||||
[bottom_width, width, height]);
|
[bottom_width, width, height]);
|
||||||
}
|
}
|
||||||
|
|
||||||
for (x = vertical) {
|
for (x = vertical) {
|
||||||
side([x, 0 - pcb_clearance_edge, 0],
|
panel([x, 0 - pcb_clearance_edge, 0],
|
||||||
[width, bottom_length, height]);
|
[width, bottom_length, height]);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
/* Upper wall */
|
/* Upper wall */
|
||||||
side([-pcb_clearance_edge - thickness + corner_radius,
|
panel([-pcb_clearance_edge - thickness + corner_radius,
|
||||||
pcb_clearance_edge + pcb_length,
|
pcb_clearance_edge + pcb_length,
|
||||||
-thickness + corner_radius],
|
-thickness + corner_radius],
|
||||||
[wall_width, thickness, wall_height + thickness - corner_radius]);
|
[wall_width, thickness, wall_height + thickness - corner_radius]);
|
||||||
|
|
||||||
/* Right wall */
|
/* Right wall */
|
||||||
side([ pcb_clearance_edge + pcb_width,
|
panel([ pcb_clearance_edge + pcb_width,
|
||||||
-pcb_clearance_edge - thickness + corner_radius,
|
-pcb_clearance_edge - thickness + corner_radius,
|
||||||
-thickness + corner_radius],
|
-thickness + corner_radius],
|
||||||
[thickness, wall_length, wall_height + thickness - corner_radius]);
|
[thickness, wall_length, wall_height + thickness - corner_radius]);
|
||||||
|
|
||||||
/* Lower wall */
|
/* Lower wall */
|
||||||
side([-pcb_clearance_edge - thickness + corner_radius,
|
panel([-pcb_clearance_edge - thickness + corner_radius,
|
||||||
-pcb_clearance_edge - thickness,
|
-pcb_clearance_edge - thickness,
|
||||||
-thickness + corner_radius],
|
-thickness + corner_radius],
|
||||||
[wall_width, thickness, wall_height + thickness - corner_radius]);
|
[wall_width, thickness, wall_height + thickness - corner_radius]);
|
||||||
|
|
||||||
/* Left wall */
|
/* Left wall */
|
||||||
side([-pcb_clearance_edge - thickness,
|
panel([-pcb_clearance_edge - thickness,
|
||||||
-pcb_clearance_edge - thickness + corner_radius,
|
-pcb_clearance_edge - thickness + corner_radius,
|
||||||
-thickness + corner_radius],
|
-thickness + corner_radius],
|
||||||
[thickness, wall_length, wall_height + thickness - corner_radius]);
|
[thickness, wall_length, wall_height + thickness - corner_radius]);
|
||||||
|
@ -164,7 +164,7 @@ module keyboard_base_plate(pcb_width, pcb_length) {
|
||||||
wall_height + thickness - corner_radius);
|
wall_height + thickness - corner_radius);
|
||||||
|
|
||||||
/* Bottom plate */
|
/* Bottom plate */
|
||||||
side([-pcb_clearance_edge - thickness + corner_radius,
|
panel([-pcb_clearance_edge - thickness + corner_radius,
|
||||||
-pcb_clearance_edge - thickness + corner_radius,
|
-pcb_clearance_edge - thickness + corner_radius,
|
||||||
-thickness],
|
-thickness],
|
||||||
[bottom_width + 2 * thickness - 2 * corner_radius,
|
[bottom_width + 2 * thickness - 2 * corner_radius,
|
||||||
|
|
Loading…
Add table
Reference in a new issue