Add tolerance variable
This commit is contained in:
parent
7c6b43d46f
commit
e31143fc0b
@ -4,6 +4,7 @@ INNER_Z_BOTTOM=60;
|
|||||||
INNER_Z_TOP=10;
|
INNER_Z_TOP=10;
|
||||||
INNER_Z_OVERLAP=10;
|
INNER_Z_OVERLAP=10;
|
||||||
WALLSIZE=4;
|
WALLSIZE=4;
|
||||||
|
TOLERANCE=0.5;
|
||||||
|
|
||||||
// The main box
|
// The main box
|
||||||
difference() {
|
difference() {
|
||||||
@ -16,8 +17,8 @@ difference() {
|
|||||||
|
|
||||||
// Overlap area
|
// Overlap area
|
||||||
difference() {
|
difference() {
|
||||||
translate([WALLSIZE/2, WALLSIZE/2, INNER_Z_BOTTOM+WALLSIZE])
|
translate([WALLSIZE/2+TOLERANCE/2, WALLSIZE/2+TOLERANCE/2, INNER_Z_BOTTOM+WALLSIZE])
|
||||||
cube([INNER_X+WALLSIZE, INNER_Y+WALLSIZE, INNER_Z_OVERLAP]);
|
cube([INNER_X+WALLSIZE-TOLERANCE, INNER_Y+WALLSIZE-TOLERANCE, INNER_Z_OVERLAP]);
|
||||||
|
|
||||||
translate([WALLSIZE, WALLSIZE, INNER_Z_BOTTOM+WALLSIZE])
|
translate([WALLSIZE, WALLSIZE, INNER_Z_BOTTOM+WALLSIZE])
|
||||||
cube([INNER_X, INNER_Y, INNER_Z_OVERLAP]);
|
cube([INNER_X, INNER_Y, INNER_Z_OVERLAP]);
|
||||||
@ -29,7 +30,7 @@ translate([INNER_X + WALLSIZE * 4, 0, 0]) {
|
|||||||
difference() {
|
difference() {
|
||||||
cube([INNER_X+WALLSIZE*2, INNER_Y+WALLSIZE*2, INNER_Z_TOP+WALLSIZE]);
|
cube([INNER_X+WALLSIZE*2, INNER_Y+WALLSIZE*2, INNER_Z_TOP+WALLSIZE]);
|
||||||
|
|
||||||
translate([WALLSIZE/2, WALLSIZE/2, WALLSIZE])
|
translate([WALLSIZE/2-TOLERANCE/2, WALLSIZE/2-TOLERANCE/2, WALLSIZE])
|
||||||
cube([INNER_X+WALLSIZE, INNER_Y+WALLSIZE, INNER_Z_TOP]);
|
cube([INNER_X+WALLSIZE+TOLERANCE, INNER_Y+WALLSIZE+TOLERANCE, INNER_Z_TOP]);
|
||||||
}
|
}
|
||||||
}
|
}
|
Loading…
Reference in New Issue
Block a user