From 4c9638be0c2f5b7c10875302c2da4ff4a9dbcea8 Mon Sep 17 00:00:00 2001 From: Justin Lin Date: Thu, 2 Jul 2020 21:13:45 +0800 Subject: [PATCH] change bottom_thickness_delta to bottom_thickness --- src/box_extrude.scad | 12 +++++++----- 1 file changed, 7 insertions(+), 5 deletions(-) diff --git a/src/box_extrude.scad b/src/box_extrude.scad index 836c6c9b..8fc41f7f 100644 --- a/src/box_extrude.scad +++ b/src/box_extrude.scad @@ -9,14 +9,16 @@ **/ module box_extrude(height, shell_thickness, - bottom_thickness_delta = 0.0, + bottom_thickness, offset_mode = "delta", chamfer = false, convexity = 3, twist, slices, scale) { - - linear_extrude(shell_thickness + bottom_thickness_delta, scale = scale / height * shell_thickness, convexity = convexity) - offset(delta = -shell_thickness * 0.99999, chamfer = chamfer) + + btm_thickness = is_undef(bottom_thickness) ? shell_thickness : bottom_thickness; + + + linear_extrude(btm_thickness, scale = scale / height * btm_thickness, convexity = convexity) + offset(delta = -btm_thickness, chamfer = chamfer) children(); - linear_extrude(height, convexity = convexity, twist = twist, slices = slices, scale = scale) difference() {