[project_box] Fix lid-only cutouts

Adjust translations to line things up at the proper heights when
rendering the lid alone.
This commit is contained in:
Correl Roush 2022-12-07 17:02:50 -05:00
parent 2b63263b60
commit 81a299ce0a

View file

@ -171,11 +171,17 @@ module project_box(box,
translate([lid_width - (fit_tolerance * 2),0,lid_height - (fit_tolerance * 2)]) {
rotate([0, 180, 0]) {
difference() {
lid([lid_width - (fit_tolerance * 2),
lid_depth - (fit_tolerance * 2),
lid_height - (fit_tolerance * 2)]);
translate([wall_width + fit_tolerance, wall_width + fit_tolerance, -0.001])
children();
translate([wall_width / 2 + fit_tolerance,
wall_width + fit_tolerance, 0]) {
lid([lid_width - (fit_tolerance * 2),
lid_depth - (fit_tolerance * 2),
lid_height - (fit_tolerance * 2)]);
}
translate([wall_width + fit_tolerance,
wall_width + fit_tolerance,
below + board_thickness - internal_height]) {
#children();
}
}
}
}