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