Rename "fin gaps" to "vents"

This commit is contained in:
XANTRONIX 2023-11-15 13:09:01 -05:00
parent c8c818d8bc
commit 51a804b723

View file

@ -40,13 +40,12 @@ module top_case(key_switch_sizes, pcb_screw_holes) {
accent_y_stride = (keyboard_length - accent_width) / 5.0;
accent_y_bottom = keyboard_y_offset;
fin_width = 2.0000;
fin_gap_width = 2.0000;
fin_gap_length = wall_width;
fin_gap_height = 12.0000;
fin_gap_count = 32;
fin_gap_x_first = keyboard_x_offset + keyboard_width - fin_gap_count * (fin_width + fin_gap_width);
fin_gap_y_offset = case_length_bottom - fin_gap_length;
vent_width = 2.0000;
vent_length = wall_width;
vent_height = 12.0000;
vent_count = 32;
vent_x_first = keyboard_x_offset + keyboard_width - vent_count * (vent_width + vent_width);
vent_y_offset = case_length_bottom - vent_length;
module fascia() {
linear_extrude(wall_width)
@ -57,12 +56,12 @@ module top_case(key_switch_sizes, pcb_screw_holes) {
}
}
module fin_gaps() {
for (i = [0:fin_gap_count]) {
x = fin_gap_x_first + (i * (fin_width + fin_gap_width));
module vents() {
for (i = [0:vent_count]) {
x = vent_x_first + (i * (vent_width + vent_width));
translate([x, fin_gap_y_offset, wall_height - fin_gap_height])
cube([fin_gap_width, fin_gap_length, fin_gap_height], false);
translate([x, vent_y_offset, wall_height - vent_height])
cube([vent_width, vent_length, vent_height], false);
}
}
@ -193,7 +192,7 @@ module top_case(key_switch_sizes, pcb_screw_holes) {
difference() {
body();
accents();
fin_gaps();
vents();
}
keyboard_deck_z_offset = wall_height - wall_width - keyboard_switch_height;