Better chamfered insertion lip in the bottom part of the box
This commit is contained in:
@@ -118,11 +118,11 @@ module lip() {
|
|||||||
difference() {
|
difference() {
|
||||||
union() {
|
union() {
|
||||||
// Lip support
|
// Lip support
|
||||||
translate([0, 0, box_cut_height + 5]) {
|
translate([0, 0, box_cut_height + 7]) {
|
||||||
intersection() {
|
intersection() {
|
||||||
difference() {
|
difference() {
|
||||||
main_body();
|
main_body();
|
||||||
scale([0.95, 0.95, 0.95]) main_body();
|
scale([0.90, 0.90, 0.90]) main_body();
|
||||||
}
|
}
|
||||||
|
|
||||||
cube([width*2, height*2, box_cut_height], true);
|
cube([width*2, height*2, box_cut_height], true);
|
||||||
@@ -131,14 +131,14 @@ module lip() {
|
|||||||
|
|
||||||
// Chamfered lip
|
// Chamfered lip
|
||||||
for (i = [0:10]) {
|
for (i = [0:10]) {
|
||||||
translate([0, 0, box_cut_height - i * 0.5]) {
|
translate([0, 0, box_cut_height + 2 - i * 0.5]) {
|
||||||
intersection() {
|
intersection() {
|
||||||
difference() {
|
difference() {
|
||||||
scale_ratio = 1 - i * 0.001;
|
scale_ratio = 0.98 - i * 0.002;
|
||||||
scale([scale_ratio, scale_ratio, scale_ratio]) {
|
scale([scale_ratio, scale_ratio, scale_ratio]) {
|
||||||
main_body();
|
main_body();
|
||||||
}
|
}
|
||||||
scale([0.95, 0.95, 0.95]) main_body();
|
scale([0.92, 0.92, 0.92]) main_body();
|
||||||
}
|
}
|
||||||
|
|
||||||
cube([width*2, height*2, 0.5], true);
|
cube([width*2, height*2, 0.5], true);
|
||||||
@@ -150,17 +150,17 @@ module lip() {
|
|||||||
|
|
||||||
// Leave space for screws standoffs near curved edges
|
// Leave space for screws standoffs near curved edges
|
||||||
translate([width/2 - rounded_edge_diameter/2, -height/2, 0]) {
|
translate([width/2 - rounded_edge_diameter/2, -height/2, 0]) {
|
||||||
scale([1.2, 1.2, 1]) standoff();
|
scale([1.5, 1.5, 1]) standoff();
|
||||||
}
|
}
|
||||||
translate([-width/2 + rounded_edge_diameter/2, height/2, 0]) {
|
translate([-width/2 + rounded_edge_diameter/2, height/2, 0]) {
|
||||||
scale([1.2, 1.2, 1]) standoff();
|
scale([1.5, 1.5, 1]) standoff();
|
||||||
}
|
}
|
||||||
// Leave space for screws standoff near sharp edges
|
// Leave space for screws standoff near sharp edges
|
||||||
translate([-width/2 + standoff_diameter/2, -height/2, 0]) {
|
translate([-width/2 + standoff_diameter/2, -height/2, 0]) {
|
||||||
scale([1.2, 1.2, 1]) standoff();
|
scale([1.5, 1.5, 1]) standoff();
|
||||||
}
|
}
|
||||||
translate([width/2 - standoff_diameter/2, height/2, 0]) {
|
translate([width/2 - standoff_diameter/2, height/2, 0]) {
|
||||||
scale([1.2, 1.2, 1]) standoff();
|
scale([1.5, 1.5, 1]) standoff();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user