1
0
mirror of https://github.com/JustinSDK/dotSCAD.git synced 2025-08-17 12:10:47 +02:00

change bottom_thickness_delta to bottom_thickness

This commit is contained in:
Justin Lin
2020-07-02 21:13:45 +08:00
parent 5d5ecc846f
commit 4c9638be0c

View File

@@ -9,15 +9,17 @@
**/ **/
module box_extrude(height, shell_thickness, module box_extrude(height, shell_thickness,
bottom_thickness_delta = 0.0, bottom_thickness,
offset_mode = "delta", chamfer = false, convexity = 3, offset_mode = "delta", chamfer = false, convexity = 3,
twist, slices, scale) { twist, slices, scale) {
linear_extrude(shell_thickness + bottom_thickness_delta, scale = scale / height * shell_thickness, convexity = convexity) btm_thickness = is_undef(bottom_thickness) ? shell_thickness : bottom_thickness;
offset(delta = -shell_thickness * 0.99999, chamfer = chamfer)
children();
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) linear_extrude(height, convexity = convexity, twist = twist, slices = slices, scale = scale)
difference() { difference() {
children(); children();