mirror of
https://github.com/JustinSDK/dotSCAD.git
synced 2025-08-06 14:56:47 +02:00
extended box_extrude with bottom_thickness_delta and convexity parameters
This commit is contained in:
@@ -8,16 +8,17 @@
|
|||||||
*
|
*
|
||||||
**/
|
**/
|
||||||
|
|
||||||
module box_extrude(height, shell_thickness,
|
module box_extrude(height, shell_thickness,
|
||||||
offset_mode = "delta", chamfer = false,
|
bottom_thickness_delta = 0.0,
|
||||||
|
offset_mode = "delta", chamfer = false, convexity = 3,
|
||||||
twist, slices, scale) {
|
twist, slices, scale) {
|
||||||
|
|
||||||
linear_extrude(shell_thickness, scale = scale / height * shell_thickness)
|
linear_extrude(shell_thickness + bottom_thickness_delta, scale = scale / height * (shell_thickness + bottom_thickness_delta), convexity = convexity)
|
||||||
offset(delta = -shell_thickness * 0.99999, chamfer = chamfer)
|
offset(delta = -(shell_thickness + bottom_thickness_delta)* 0.99999, chamfer = chamfer)
|
||||||
children();
|
children();
|
||||||
|
|
||||||
|
|
||||||
linear_extrude(height, twist = twist, slices = slices, scale = scale)
|
linear_extrude(height, convexity = convexity, twist = twist, slices = slices, scale = scale)
|
||||||
difference() {
|
difference() {
|
||||||
children();
|
children();
|
||||||
if(offset_mode == "delta") {
|
if(offset_mode == "delta") {
|
||||||
@@ -29,5 +30,3 @@ module box_extrude(height, shell_thickness,
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Reference in New Issue
Block a user