Bug fix hygrometer_hole() when h > 0.

This commit is contained in:
Chris Palmer 2021-01-08 21:24:06 +00:00
parent 16c1eeef27
commit 545329b875
1 changed files with 15 additions and 14 deletions

View File

@ -34,14 +34,15 @@ hygrometer_hole_r = 21.3;
slot_w = 5.5; slot_w = 5.5;
module hygrometer_hole(h = 0) { //! Drill the hole for a hygrometer module hygrometer_hole(h = 0) { //! Drill the hole for a hygrometer
extrude_if(h)
round(cnc_bit_r) { round(cnc_bit_r) {
intersection() { intersection() {
drill(hygrometer_hole_r, h); drill(hygrometer_hole_r, 0);
rotate(30) rotate(30)
square([slot_w + 2 * cnc_bit_r, 100], center = true); square([slot_w + 2 * cnc_bit_r, 100], center = true);
} }
drill((od + 0.2) / 2, h); drill((od + 0.2) / 2, 0);
} }
} }