mirror of
https://github.com/JustinSDK/dotSCAD.git
synced 2025-08-17 20:11:50 +02:00
change bottom_thickness_delta to bottom_thickness
This commit is contained in:
@@ -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();
|
||||||
|
Reference in New Issue
Block a user