From 547a418cea5a015fa5a50869f3962403bf956bc7 Mon Sep 17 00:00:00 2001 From: Chris Palmer Date: Sat, 22 Aug 2020 13:52:25 +0100 Subject: [PATCH] Hanging hole now works when the hole has only four sides. --- utils/hanging_hole.scad | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/utils/hanging_hole.scad b/utils/hanging_hole.scad index 83b4ab8..ec1fb2a 100644 --- a/utils/hanging_hole.scad +++ b/utils/hanging_hole.scad @@ -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; below = min(z + eps, h2); big = 1000; - render(convexity = 3) translate_z(z) union() { 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() { translate_z(-below)