Backpack Organizer v11: adjust lip clearance.
This commit is contained in:
@@ -6,7 +6,7 @@ $fn=128;
|
|||||||
outerWall=4;
|
outerWall=4;
|
||||||
innerWall=2;
|
innerWall=2;
|
||||||
layerClearance = 0.5;
|
layerClearance = 0.5;
|
||||||
verStr="v10";
|
verStr="v11";
|
||||||
font="Montserrat";
|
font="Montserrat";
|
||||||
ep = 0.01; // smallest unit to ensure overlap between shapes
|
ep = 0.01; // smallest unit to ensure overlap between shapes
|
||||||
|
|
||||||
@@ -31,7 +31,7 @@ audioTrayIH = audioTrayHeight - innerWall;
|
|||||||
|
|
||||||
|
|
||||||
module shellBottom(dims) {
|
module shellBottom(dims) {
|
||||||
lipClearance = innerWall + 1;
|
lipClearance = innerWall + 0.2;
|
||||||
bottomShellH = dims[2]*0.75;
|
bottomShellH = dims[2]*0.75;
|
||||||
difference() {
|
difference() {
|
||||||
union() {
|
union() {
|
||||||
@@ -46,10 +46,10 @@ module shellBottom(dims) {
|
|||||||
}
|
}
|
||||||
|
|
||||||
// add lip to mate with top
|
// add lip to mate with top
|
||||||
translate([lipClearance, lipClearance, bottomShellH - ep])
|
translate([lipClearance, lipClearance, bottomShellH - 2])
|
||||||
roundedCube(
|
chamferedCube(
|
||||||
[dims[0] - 2*lipClearance, dims[1] - 2*lipClearance, 4 - 1],
|
[dims[0] - 2*lipClearance, dims[1] - 2*lipClearance, 6 - 1],
|
||||||
[2, 2, 0]);
|
chamfer=1);
|
||||||
}
|
}
|
||||||
|
|
||||||
// carve out the interior
|
// carve out the interior
|
||||||
@@ -57,6 +57,7 @@ module shellBottom(dims) {
|
|||||||
cube([dims[0] - 2*outerWall, dims[1] - 2*outerWall, dims[2]]);
|
cube([dims[0] - 2*outerWall, dims[1] - 2*outerWall, dims[2]]);
|
||||||
|
|
||||||
// carve out a 0.6mm sliver for the fabric to sit in
|
// carve out a 0.6mm sliver for the fabric to sit in
|
||||||
|
/*
|
||||||
fabricClearance = 0.6;
|
fabricClearance = 0.6;
|
||||||
translate([
|
translate([
|
||||||
lipClearance - fabricClearance,
|
lipClearance - fabricClearance,
|
||||||
@@ -74,16 +75,16 @@ module shellBottom(dims) {
|
|||||||
[dims[0] - 2*lipClearance, dims[1] - 2*lipClearance, 8],
|
[dims[0] - 2*lipClearance, dims[1] - 2*lipClearance, 8],
|
||||||
[2, 2, 0]);
|
[2, 2, 0]);
|
||||||
}
|
}
|
||||||
|
*/
|
||||||
|
|
||||||
// version marker
|
// version marker
|
||||||
color("black")
|
color("black")
|
||||||
translate([0.6, 20, 8]) rotate([90, 0,-90])
|
translate([0.6, 26, 8]) rotate([90, 0,-90])
|
||||||
linear_extrude(0.61) text(text = verStr, font = font, size = 8);
|
linear_extrude(0.61) text(text = verStr, font = font, size = 8);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
module shellTop(dims) {
|
module shellTop(dims) {
|
||||||
lipClearance = innerWall + 1;
|
|
||||||
topShellH = dims[2]*0.25;
|
topShellH = dims[2]*0.25;
|
||||||
difference() {
|
difference() {
|
||||||
union() {
|
union() {
|
||||||
@@ -103,35 +104,37 @@ module shellTop(dims) {
|
|||||||
cube([dims[0] - 2*outerWall, dims[1] - 2*outerWall, dims[2]]);
|
cube([dims[0] - 2*outerWall, dims[1] - 2*outerWall, dims[2]]);
|
||||||
|
|
||||||
// carve out the interior of the lip
|
// carve out the interior of the lip
|
||||||
translate([lipClearance, lipClearance, topShellH])
|
translate([innerWall - 0.2, innerWall - 0.2, topShellH])
|
||||||
roundedCube(
|
chamferedCube(
|
||||||
[dims[0] - 2*lipClearance, dims[1] - 2*lipClearance, dims[2]],
|
[dims[0] - 2*innerWall + 0.4, dims[1] - 2*innerWall + 0.4, dims[2]],
|
||||||
[2, 2, 0]);
|
chamfer = 2);
|
||||||
|
|
||||||
|
/*
|
||||||
// carve out a 0.6mm sliver for the fabric to sit in
|
// carve out a 0.6mm sliver for the fabric to sit in
|
||||||
fabricClearance = 0.6;
|
fabricClearance = 0.6;
|
||||||
translate([
|
translate([
|
||||||
lipClearance,
|
layerClearance,
|
||||||
lipClearance,
|
layerClearance,
|
||||||
topShellH - 4])
|
topShellH - 4])
|
||||||
difference() {
|
difference() {
|
||||||
roundedCube(
|
roundedCube(
|
||||||
[ dims[0] - 2*lipClearance,
|
[ dims[0] - 2*layerClearance,
|
||||||
dims[1] - 2*lipClearance,
|
dims[1] - 2*layerClearance,
|
||||||
7],
|
7],
|
||||||
[2, 2, 0]);
|
[2, 2, 0]);
|
||||||
|
|
||||||
translate([fabricClearance, fabricClearance, -ep])
|
translate([fabricClearance, fabricClearance, -ep])
|
||||||
roundedCube(
|
roundedCube(
|
||||||
[ dims[0] - 2*lipClearance - 2*fabricClearance,
|
[ dims[0] - 2*layerClearance - 2*fabricClearance,
|
||||||
dims[1] - 2*lipClearance - 2*fabricClearance,
|
dims[1] - 2*layerClearance - 2*fabricClearance,
|
||||||
8],
|
8],
|
||||||
[2, 2, 0]);
|
[2, 2, 0]);
|
||||||
}
|
}
|
||||||
|
*/
|
||||||
|
|
||||||
// version marker
|
// version marker
|
||||||
color("black")
|
color("black")
|
||||||
translate([0.6, 20, 8]) rotate([90, 0,-90])
|
translate([0.6, 26, 8]) rotate([90, 0,-90])
|
||||||
linear_extrude(0.61) text(text = verStr, font = font, size = 8);
|
linear_extrude(0.61) text(text = verStr, font = font, size = 8);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@@ -229,7 +232,7 @@ module layer1() {
|
|||||||
|
|
||||||
// version marker
|
// version marker
|
||||||
color("black")
|
color("black")
|
||||||
translate([-innerWall + 0.6, 20, 4]) rotate([90, 0,-90])
|
translate([-innerWall + 0.6, 26, 4]) rotate([90, 0,-90])
|
||||||
linear_extrude(0.61) text(text = verStr, font = font, size = 8);
|
linear_extrude(0.61) text(text = verStr, font = font, size = 8);
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -290,7 +293,7 @@ module layer2() {
|
|||||||
|
|
||||||
// version marker
|
// version marker
|
||||||
color("black")
|
color("black")
|
||||||
translate([0.6, 20 + innerWall, 4]) rotate([90, 0,-90])
|
translate([0.6, 26 + innerWall, 4]) rotate([90, 0,-90])
|
||||||
linear_extrude(0.61) text(text = verStr, font = font, size = 8);
|
linear_extrude(0.61) text(text = verStr, font = font, size = 8);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user