mirror of
https://github.com/JustinSDK/dotSCAD.git
synced 2025-08-22 22:35:18 +02:00
supported r_delta and chamfer
This commit is contained in:
@@ -10,16 +10,21 @@
|
|||||||
*
|
*
|
||||||
**/
|
**/
|
||||||
|
|
||||||
module box_extrude(height, shell_thickness) {
|
module box_extrude(height, shell_thickness, offset_mode = "delta", chamfer = false) {
|
||||||
linear_extrude(shell_thickness)
|
linear_extrude(shell_thickness)
|
||||||
children();
|
children();
|
||||||
|
|
||||||
linear_extrude(height)
|
linear_extrude(height)
|
||||||
difference() {
|
difference() {
|
||||||
children();
|
children();
|
||||||
offset(delta = -shell_thickness)
|
if(offset_mode == "delta") {
|
||||||
|
offset(delta = -shell_thickness, chamfer = chamfer)
|
||||||
|
children();
|
||||||
|
} else {
|
||||||
|
offset(r = -shell_thickness)
|
||||||
children();
|
children();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
|
Reference in New Issue
Block a user