Fixed bug closing holes in cap
This commit is contained in:
@@ -115,33 +115,34 @@ module box() {
|
|||||||
|
|
||||||
// Upper cap lip
|
// Upper cap lip
|
||||||
module lip() {
|
module lip() {
|
||||||
// Lip support
|
|
||||||
translate([0, 0, box_cut_height + 5]) {
|
|
||||||
intersection() {
|
|
||||||
difference() {
|
|
||||||
main_body();
|
|
||||||
scale([0.95, 0.95, 0.95]) main_body();
|
|
||||||
}
|
|
||||||
|
|
||||||
cube([width*2, height*2, box_cut_height], true);
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
|
|
||||||
// Chamfered lip
|
|
||||||
difference() {
|
difference() {
|
||||||
for (i = [0:10]) {
|
union() {
|
||||||
translate([0, 0, box_cut_height - i * 0.5]) {
|
// Lip support
|
||||||
|
translate([0, 0, box_cut_height + 5]) {
|
||||||
intersection() {
|
intersection() {
|
||||||
difference() {
|
difference() {
|
||||||
scale_ratio = 1 - i * 0.001;
|
main_body();
|
||||||
scale([scale_ratio, scale_ratio, scale_ratio]) {
|
|
||||||
main_body();
|
|
||||||
}
|
|
||||||
scale([0.95, 0.95, 0.95]) main_body();
|
scale([0.95, 0.95, 0.95]) main_body();
|
||||||
}
|
}
|
||||||
|
|
||||||
cube([width*2, height*2, 0.5], true);
|
cube([width*2, height*2, box_cut_height], true);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
// Chamfered lip
|
||||||
|
for (i = [0:10]) {
|
||||||
|
translate([0, 0, box_cut_height - i * 0.5]) {
|
||||||
|
intersection() {
|
||||||
|
difference() {
|
||||||
|
scale_ratio = 1 - i * 0.001;
|
||||||
|
scale([scale_ratio, scale_ratio, scale_ratio]) {
|
||||||
|
main_body();
|
||||||
|
}
|
||||||
|
scale([0.95, 0.95, 0.95]) main_body();
|
||||||
|
}
|
||||||
|
|
||||||
|
cube([width*2, height*2, 0.5], true);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user