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

fix bottom scale issue

This commit is contained in:
Justin Lin
2020-07-02 22:01:41 +08:00
parent 82727ac436
commit 4bcb6848ce

View File

@@ -15,10 +15,13 @@ module box_extrude(height, shell_thickness,
btm_thickness = is_undef(bottom_thickness) ? shell_thickness : bottom_thickness;
linear_extrude(btm_thickness, convexity = convexity)
offset(delta = -btm_thickness, chamfer = chamfer)
children();
intersection() {
linear_extrude(btm_thickness)
square(65536, center = true); // 65536: just large enough size to cover the children
linear_extrude(height, convexity = convexity, twist = twist, slices = slices, scale = scale)
children();
}
linear_extrude(height, convexity = convexity, twist = twist, slices = slices, scale = scale)
difference() {