There will be no off-by-one errors in MY house!

This commit is contained in:
XANTRONIX 2023-11-22 12:36:45 -05:00
parent de005917cd
commit a1561cdd42

View file

@ -16,7 +16,7 @@ module top_case(with_keyboard=false) {
vent_width = 2.0000;
vent_length = wall_width;
vent_height = 12.0000;
vent_count = 32;
vent_count = 33;
vent_x_first = keyboard_x_offset + keyboard_pcb_width - vent_count * (vent_width + vent_width);
vent_y_offset = case_length_bottom - vent_length;
@ -34,7 +34,7 @@ module top_case(with_keyboard=false) {
}
module vents() {
for (i = [0:vent_count]) {
for (i = [0:vent_count-1]) {
x = vent_x_first + (i * (vent_width + vent_width));
translate([x, vent_y_offset-eps, wall_height - vent_height])