Fix keyboard deck height, placement
This commit is contained in:
parent
d2c6145437
commit
58f75e5fd2
2 changed files with 15 additions and 13 deletions
|
@ -70,21 +70,23 @@ module keyboard_deck(wall_width) {
|
||||||
}
|
}
|
||||||
|
|
||||||
module walls() {
|
module walls() {
|
||||||
|
wall_height = keyboard_switch_height - wall_width;
|
||||||
|
|
||||||
/* Upper */
|
/* Upper */
|
||||||
translate([-wall_width, keyboard_pcb_length, 0])
|
translate([-wall_width, keyboard_pcb_length, 0])
|
||||||
cube([keyboard_pcb_width + 2 * wall_width, wall_width, keyboard_switch_height], false);
|
cube([keyboard_pcb_width + 2 * wall_width, wall_width, wall_height], false);
|
||||||
|
|
||||||
/* Right */
|
/* Right */
|
||||||
translate([keyboard_pcb_width, -wall_width, 0])
|
translate([keyboard_pcb_width, -wall_width, 0])
|
||||||
cube([wall_width, keyboard_pcb_length + 2 * wall_width, keyboard_switch_height], false);
|
cube([wall_width, keyboard_pcb_length + 2 * wall_width, wall_height], false);
|
||||||
|
|
||||||
/* Lower */
|
/* Lower */
|
||||||
translate([-wall_width, -wall_width, 0])
|
translate([-wall_width, -wall_width, 0])
|
||||||
cube([keyboard_pcb_width + 2 * wall_width, wall_width, keyboard_switch_height], false);
|
cube([keyboard_pcb_width + 2 * wall_width, wall_width, wall_height], false);
|
||||||
|
|
||||||
/* Left */
|
/* Left */
|
||||||
translate([-wall_width, -wall_width, 0])
|
translate([-wall_width, -wall_width, 0])
|
||||||
cube([wall_width, keyboard_pcb_length + 2 * wall_width, keyboard_switch_height], false);
|
cube([wall_width, keyboard_pcb_length + 2 * wall_width, keyboard_switch_height - wall_width], false);
|
||||||
}
|
}
|
||||||
|
|
||||||
module body() {
|
module body() {
|
||||||
|
|
|
@ -14,7 +14,7 @@ module top_case(key_switch_sizes, pcb_screw_holes) {
|
||||||
keyboard_x_offset = 12.2500;
|
keyboard_x_offset = 12.2500;
|
||||||
keyboard_y_offset = 12.2500;
|
keyboard_y_offset = 12.2500;
|
||||||
|
|
||||||
keyboard_deck_z_offset = wall_height - wall_width - keyboard_switch_height;
|
keyboard_deck_z_offset = wall_height - keyboard_switch_height;
|
||||||
|
|
||||||
accent_width = 1.0000;
|
accent_width = 1.0000;
|
||||||
accent_depth = 0.5;
|
accent_depth = 0.5;
|
||||||
|
@ -28,8 +28,6 @@ module top_case(key_switch_sizes, pcb_screw_holes) {
|
||||||
vent_x_first = keyboard_x_offset + keyboard_pcb_width - vent_count * (vent_width + vent_width);
|
vent_x_first = keyboard_x_offset + keyboard_pcb_width - vent_count * (vent_width + vent_width);
|
||||||
vent_y_offset = case_length_bottom - vent_length;
|
vent_y_offset = case_length_bottom - vent_length;
|
||||||
|
|
||||||
support_width = 1.2500;
|
|
||||||
|
|
||||||
screw_post_diameter_inner = 3.00;
|
screw_post_diameter_inner = 3.00;
|
||||||
screw_post_diameter_outer = 6.25;
|
screw_post_diameter_outer = 6.25;
|
||||||
screw_post_corner_height = 12.00;
|
screw_post_corner_height = 12.00;
|
||||||
|
@ -111,6 +109,10 @@ module top_case(key_switch_sizes, pcb_screw_holes) {
|
||||||
}
|
}
|
||||||
|
|
||||||
module supports() {
|
module supports() {
|
||||||
|
support_width = 1.2500;
|
||||||
|
support_height = keyboard_switch_height - wall_width;
|
||||||
|
aspect_ratio = 3.75 / 12.0;
|
||||||
|
|
||||||
module support(dimensions, width) {
|
module support(dimensions, width) {
|
||||||
length = dimensions[0];
|
length = dimensions[0];
|
||||||
height = dimensions[1];
|
height = dimensions[1];
|
||||||
|
@ -129,8 +131,6 @@ module top_case(key_switch_sizes, pcb_screw_holes) {
|
||||||
|
|
||||||
module shape() {
|
module shape() {
|
||||||
/* Height ratio of lower aspect to upper aspect */
|
/* Height ratio of lower aspect to upper aspect */
|
||||||
aspect_ratio = 3.75 / 12.0;
|
|
||||||
|
|
||||||
aspect_upper_height = height;
|
aspect_upper_height = height;
|
||||||
aspect_lower_height = aspect_ratio * height;
|
aspect_lower_height = aspect_ratio * height;
|
||||||
|
|
||||||
|
@ -196,12 +196,12 @@ module top_case(key_switch_sizes, pcb_screw_holes) {
|
||||||
translate([support_x_offset + x,
|
translate([support_x_offset + x,
|
||||||
upper_support_y_offset - eps,
|
upper_support_y_offset - eps,
|
||||||
wall_height - wall_width])
|
wall_height - wall_width])
|
||||||
support([upper_support_length + 2*eps, keyboard_switch_height], support_width);
|
support([upper_support_length + 2*eps, support_height], support_width);
|
||||||
|
|
||||||
translate([support_x_offset + x,
|
translate([support_x_offset + x,
|
||||||
lower_support_y_offset - eps,
|
lower_support_y_offset - eps,
|
||||||
wall_height - wall_width])
|
wall_height - wall_width])
|
||||||
support([lower_support_length + 2*eps, keyboard_switch_height], support_width);
|
support([lower_support_length + 2*eps, support_height], support_width);
|
||||||
}
|
}
|
||||||
|
|
||||||
for (y = [0: support_y_interval: keyboard_pcb_length + 2 * wall_width]) {
|
for (y = [0: support_y_interval: keyboard_pcb_length + 2 * wall_width]) {
|
||||||
|
@ -209,13 +209,13 @@ module top_case(key_switch_sizes, pcb_screw_holes) {
|
||||||
support_y_offset + y - wall_width + support_width,
|
support_y_offset + y - wall_width + support_width,
|
||||||
wall_height - wall_width])
|
wall_height - wall_width])
|
||||||
rotate([0, 0, -90])
|
rotate([0, 0, -90])
|
||||||
support([right_support_length + 2*eps, keyboard_switch_height], support_width);
|
support([right_support_length + 2*eps, support_height], support_width);
|
||||||
|
|
||||||
translate([left_support_x_offset - eps,
|
translate([left_support_x_offset - eps,
|
||||||
support_y_offset + y - wall_width + support_width,
|
support_y_offset + y - wall_width + support_width,
|
||||||
wall_height - wall_width])
|
wall_height - wall_width])
|
||||||
rotate([0, 0, -90])
|
rotate([0, 0, -90])
|
||||||
support([left_support_length + 2*eps, keyboard_switch_height], support_width);
|
support([left_support_length + 2*eps, support_height], support_width);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Add table
Reference in a new issue