diff --git a/box.scad b/box.scad index d1053c6..5070302 100644 --- a/box.scad +++ b/box.scad @@ -119,22 +119,22 @@ module hinge(theta=90) { left(x/2)cuboid([x,20+2*d,50], fillet=2, edges=EDGES_X_ALL); hinge_mount($die=true); } - left(5+d)back(py/2 + 5+d)zrot(theta){ + left(5+d)back(py/2 + 5+2*d)zrot(theta){ zrot(-theta)zspread(n=4, l=37.4 ) { cyl(d=9, h=6, chamfer=.8); - right(5+d)fwd(9/4)cuboid([x,1+9/2,6], align=V_LEFT, chamfer=1, edges=EDGES_Y_RT+EDGE_BK_RT); + right(5.3)fwd(9/4)cuboid([x,2*d+1+9/2,6], align=V_LEFT, chamfer=1, edges=EDGES_Y_RT+EDGE_BK_RT); } cyl(r=2, h=42); zspread(n=3, l=25 ) difference() { union() { cyl(d=9, h=6, chamfer=.8); - right(5+d)back(9/4)cuboid([x,1+9/2,6], align=V_LEFT, chamfer=1, edges=EDGES_Y_RT+EDGE_FR_RT); + right(5+d)back(9/4)cuboid([x,2+9/2,6], align=V_LEFT, chamfer=1, edges=EDGES_Y_RT+EDGE_FR_RT); } cyl(r=2.2, h=6.2); } difference() { - left((x)/2-5)back(10+5)cuboid([x,20+2*d,50], fillet=2, edges=EDGES_X_ALL); - right(5)back(10+6)zrot(180) { + left((x)/2-(5+d))back(15+5)cuboid([x,30+2*d,50], fillet=2, edges=EDGES_X_ALL); + right(5)back(20+6)zrot(180) { hinge_mount(bl=9, $die=true); %hinge_mount(bl=9,$die=false); } @@ -285,7 +285,11 @@ if (PART == "edge_side_top") { if (PART == "edge_top_front") { //r = $t *90 - 45; r=-45; - box_edge(l=lx/3, rbfoot=false, hm=true, ht=r, flx=false, iy=false, wx=true, jup=true, jdown=true, cm=true, orient=ORIENT_XNEG_180); + left(coff/2-2*psoff) back(lx/3/2)zrot(315)ear(thick=.2, dis=-2); + right(coff/2-2*psoff) back(lx/3/2)zrot(225)ear(thick=.2, dis=-2); + left(coff/2-2*psoff) fwd(lx/3/2)zrot(45)ear(thick=.2, dis=-2); + right(coff/2-2*psoff) fwd(lx/3/2)zrot(135)ear(thick=.2, dis=-2); + up((wt+wl)/sqrt(2)) yrot(45+90)zrot(90)box_edge(l=lx/3, rbfoot=false, hm=true, ht=r, flx=false, iy=false, wx=true, jup=true, jdown=true, cm=true, orient=ORIENT_XNEG_180); face_off = ((ps+psoff)/4); //xrot(45)yrot(-90)right(face_off+7/2)zrot(180)hinge(); }