From 69cbd7e88a12465b5ce0190b94be083678d8b6bc Mon Sep 17 00:00:00 2001 From: Justin Lin Date: Wed, 2 Oct 2019 09:57:22 +0800 Subject: [PATCH] update all --- src/dotSCAD.scad | 17 ++++++++++------- 1 file changed, 10 insertions(+), 7 deletions(-) diff --git a/src/dotSCAD.scad b/src/dotSCAD.scad index dc21512d..3e841a78 100644 --- a/src/dotSCAD.scad +++ b/src/dotSCAD.scad @@ -5921,11 +5921,16 @@ function __edge_r_end(orig_r, a, a_step, n) = * **/ -module box_extrude(height, shell_thickness, offset_mode = "delta", chamfer = false) { - linear_extrude(shell_thickness) +module box_extrude(height, shell_thickness, + offset_mode = "delta", chamfer = false, + twist, slices, scale) { + + linear_extrude(shell_thickness, scale = scale / height * shell_thickness) + offset(delta = -shell_thickness * 0.99999, chamfer = chamfer) children(); - - linear_extrude(height) + + + linear_extrude(height, twist = twist, slices = slices, scale = scale) difference() { children(); if(offset_mode == "delta") { @@ -5936,9 +5941,7 @@ module box_extrude(height, shell_thickness, offset_mode = "delta", chamfer = fal children(); } } -} - - +} /** * archimedean_spiral_extrude.scad