Setup edge_top_front

edge_top_front print setup.

hinge extended to not need changes in top_front edge
This commit is contained in:
2024-04-09 08:53:29 -04:00
parent b9cc75f048
commit 978a0a469a

View File

@@ -119,22 +119,22 @@ module hinge(theta=90) {
left(x/2)cuboid([x,20+2*d,50], fillet=2, edges=EDGES_X_ALL); left(x/2)cuboid([x,20+2*d,50], fillet=2, edges=EDGES_X_ALL);
hinge_mount($die=true); 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 ) { zrot(-theta)zspread(n=4, l=37.4 ) {
cyl(d=9, h=6, chamfer=.8); 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); cyl(r=2, h=42);
zspread(n=3, l=25 ) difference() { zspread(n=3, l=25 ) difference() {
union() { union() {
cyl(d=9, h=6, chamfer=.8); 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); cyl(r=2.2, h=6.2);
} }
difference() { difference() {
left((x)/2-5)back(10+5)cuboid([x,20+2*d,50], fillet=2, edges=EDGES_X_ALL); left((x)/2-(5+d))back(15+5)cuboid([x,30+2*d,50], fillet=2, edges=EDGES_X_ALL);
right(5)back(10+6)zrot(180) { right(5)back(20+6)zrot(180) {
hinge_mount(bl=9, $die=true); hinge_mount(bl=9, $die=true);
%hinge_mount(bl=9,$die=false); %hinge_mount(bl=9,$die=false);
} }
@@ -285,7 +285,11 @@ if (PART == "edge_side_top") {
if (PART == "edge_top_front") { if (PART == "edge_top_front") {
//r = $t *90 - 45; //r = $t *90 - 45;
r=-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); face_off = ((ps+psoff)/4);
//xrot(45)yrot(-90)right(face_off+7/2)zrot(180)hinge(); //xrot(45)yrot(-90)right(face_off+7/2)zrot(180)hinge();
} }