mirror of
https://github.com/DJSundog/NopSCADlib.git
synced 2024-11-23 07:13:51 -05:00
Bug fix hygrometer_hole() when h > 0.
This commit is contained in:
parent
16c1eeef27
commit
545329b875
@ -34,15 +34,16 @@ 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
|
||||||
round(cnc_bit_r) {
|
extrude_if(h)
|
||||||
intersection() {
|
round(cnc_bit_r) {
|
||||||
drill(hygrometer_hole_r, h);
|
intersection() {
|
||||||
|
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, 0);
|
||||||
}
|
}
|
||||||
drill((od + 0.2) / 2, h);
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|
||||||
function hygrometer_or() = flange_d / 2; //! The outside radius of a hygrometer
|
function hygrometer_or() = flange_d / 2; //! The outside radius of a hygrometer
|
||||||
@ -54,13 +55,13 @@ module hygrometer() { //! Draw a hygrometer
|
|||||||
color(grey(30))
|
color(grey(30))
|
||||||
rotate_extrude()
|
rotate_extrude()
|
||||||
polygon([
|
polygon([
|
||||||
[0, 0],
|
[0, 0],
|
||||||
[aperture_d / 2, 0],
|
[aperture_d / 2, 0],
|
||||||
[aperture_d / 2, flange_t],
|
[aperture_d / 2, flange_t],
|
||||||
[flange_d2 / 2, flange_t2],
|
[flange_d2 / 2, flange_t2],
|
||||||
[flange_d / 2, flange_t],
|
[flange_d / 2, flange_t],
|
||||||
[flange_d / 2, 0],
|
[flange_d / 2, 0],
|
||||||
[od / 2, 0],
|
[od / 2, 0],
|
||||||
[od / 2, -h],
|
[od / 2, -h],
|
||||||
[0, -h]
|
[0, -h]
|
||||||
]);
|
]);
|
||||||
|
Loading…
Reference in New Issue
Block a user