mirror of
https://github.com/correl/openscad.git
synced 2024-11-21 11:08:39 +00:00
[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:
parent
2b63263b60
commit
81a299ce0a
1 changed files with 11 additions and 5 deletions
|
@ -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();
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue