$sealingbox_cnrrad = 10;
$sealingbox_crude = false;
+$sealingbox_inner_slop = 0.2;
m4_define(`BoxLocals',`
xbox = $sealingbox_sz[0];
xbox_lin = xbox - cnrrad*2;
ybox_lin = ybox - cnrrad*2;
-
- innertube = 1.0 + 0.2;
- lidoverlap = 1.5;
- lidoverhang = 6;
- tubesealrad = 2.0;
')
+m4_define(`innertube', `(1.0 + 0.2)')
+m4_define(`lidoverlap', `1.5')
+m4_define(`lidoverhang', `6')
+m4_define(`tubesealrad', `2.0')
+
m4_define(`BoxFn',`$fn= $sealingbox_crude ? ($2) : ($1)')
m4_dnl Box_Part($1=transl_x,$2=transl_y, $3=rot_z,$4=mirror_xy)
mirror([0,1]) square([wall, floorth]);
}
+function SealingBox_lidbigger() = lidoverlap + innertube;
+
module SealingBox_LidProfile(){
BoxLocals
rad = tubesealrad + innertube;
morex = wall;
+ inner_buttress_h = tubesealrad*1.5 + innertube + ceilth;
+
difference(){
- translate([-lidoverlap - innertube,
- zbox - lidoverhang - innertube])
- square([lidoverlap + innertube + wall,
+ translate([0, zbox + ceilth]) mirror([0,1]) {
+ translate([-SealingBox_lidbigger(),
+ 0])
+ square([lidoverlap + innertube + tubesealrad,
lidoverhang + innertube + ceilth]);
+ square([tubesealrad*2 + innertube + lidoverlap,
+ inner_buttress_h]);
+ }
hull(){
translate([tubesealrad,
zbox - innertube - tubesealrad])
for (t=[ [0,0],
- [morex*2, 0],
[0, -zbox]
]) {
translate(t)
}
}
}
+ translate([tubesealrad*2 + $sealingbox_inner_slop,
+ zbox + ceilth]) {
+ mirror([0,1]) {
+ square([lidoverlap + innertube,
+ inner_buttress_h]);
+ }
+ }
}
module SealingBox_CeilProfile(){