From 3810b71b26793f6cf87ede5545c66d07e8e4be07 Mon Sep 17 00:00:00 2001 From: Chris Palmer Date: Fri, 14 Jun 2019 13:13:15 +0100 Subject: [PATCH] Fixed insert_hole() convexity --- vitamins/insert.scad | 21 +++++++++++---------- 1 file changed, 11 insertions(+), 10 deletions(-) diff --git a/vitamins/insert.scad b/vitamins/insert.scad index f85a195..1c46d2b 100644 --- a/vitamins/insert.scad +++ b/vitamins/insert.scad @@ -78,18 +78,19 @@ module insert(type) { //! Draw specified insert module insert_hole(type, counterbore = 0, horizontal = false) { //! Make a hole to take an insert, ```counterbore``` is the extra length for the screw h = insert_hole_length(type); - render() if(horizontal) { - teardrop_plus(r = insert_hole_radius(type), h = 2 * h); + render(convexity = 2) + if(horizontal) { + teardrop_plus(r = insert_hole_radius(type), h = 2 * h); - if(counterbore) - teardrop_plus(r = insert_screw_diameter(type) / 2 + 0.1, h = 2 * (h + counterbore)); - } - else { - poly_cylinder(r = insert_hole_radius(type), h = 2 * h, center = true); + if(counterbore) + teardrop_plus(r = insert_screw_diameter(type) / 2 + 0.1, h = 2 * (h + counterbore)); + } + else { + poly_cylinder(r = insert_hole_radius(type), h = 2 * h, center = true); - if(counterbore) - poly_cylinder(r = insert_screw_diameter(type) / 2 + 0.1, h = 2 * (h + counterbore), center = true); - } + if(counterbore) + poly_cylinder(r = insert_screw_diameter(type) / 2 + 0.1, h = 2 * (h + counterbore), center = true); + } } module insert_boss(type, z, wall = 2 * extrusion_width) { //! Make a boss to take an insert