Hanging hole now works when the hole has only four sides.
This commit is contained in:
parent
b6d25048bc
commit
547a418cea
|
@ -39,11 +39,13 @@ module hanging_hole(z, ir, h = 100, h2 = 100) { //! Hole radius ```ir``` hanging
|
||||||
infill_angle = z % (2 * layer_height) ? -45 : 45;
|
infill_angle = z % (2 * layer_height) ? -45 : 45;
|
||||||
below = min(z + eps, h2);
|
below = min(z + eps, h2);
|
||||||
big = 1000;
|
big = 1000;
|
||||||
|
|
||||||
render(convexity = 3) translate_z(z)
|
render(convexity = 3) translate_z(z)
|
||||||
union() {
|
union() {
|
||||||
translate_z(2 * layer_height)
|
translate_z(2 * layer_height)
|
||||||
polyhole(ir - eps, h - 2 * layer_height);
|
if(sides(ir) > 4)
|
||||||
|
polyhole(ir - eps, h - 2 * layer_height);
|
||||||
|
else
|
||||||
|
poly_cylinder(ir, h - 2 * layer_height);
|
||||||
|
|
||||||
difference() {
|
difference() {
|
||||||
translate_z(-below)
|
translate_z(-below)
|
||||||
|
|
Loading…
Reference in New Issue