There will be no off-by-one errors in MY house!
This commit is contained in:
parent
de005917cd
commit
a1561cdd42
1 changed files with 2 additions and 2 deletions
|
@ -16,7 +16,7 @@ module top_case(with_keyboard=false) {
|
||||||
vent_width = 2.0000;
|
vent_width = 2.0000;
|
||||||
vent_length = wall_width;
|
vent_length = wall_width;
|
||||||
vent_height = 12.0000;
|
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_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;
|
||||||
|
|
||||||
|
@ -34,7 +34,7 @@ module top_case(with_keyboard=false) {
|
||||||
}
|
}
|
||||||
|
|
||||||
module vents() {
|
module vents() {
|
||||||
for (i = [0:vent_count]) {
|
for (i = [0:vent_count-1]) {
|
||||||
x = vent_x_first + (i * (vent_width + vent_width));
|
x = vent_x_first + (i * (vent_width + vent_width));
|
||||||
|
|
||||||
translate([x, vent_y_offset-eps, wall_height - vent_height])
|
translate([x, vent_y_offset-eps, wall_height - vent_height])
|
||||||
|
|
Loading…
Add table
Reference in a new issue