Bottom Edge fix

Fixed bottom edge to use floor type.
Added colors for edge joiner clearance cuts. brown is down. green is up.
This commit is contained in:
2024-03-22 15:14:19 -04:00
parent f6d2ce3f9e
commit d0fa3bbfa8

View File

@@ -117,8 +117,8 @@ module box_edge(ps=PROFILE_SIZE, l=10, orient=ORIENT_Z, jh = JOINER_H,jw = JOINE
difference() {
linear_extrude(height=l, center=true)
profile(flx=flx, fly=true, wx=wx, wy=true);
if (jup) up(jzoff)back(joiner_off)right(joiner_off)zrot(45)boxjoiner_clear(orient=ORIENT_Y_90, align=V_CENTER);
if (jdown) down(jzoff)back(joiner_off)right(joiner_off)zrot(45)boxjoiner_clear(orient=ORIENT_Y_90, align=V_CENTER);
if (jup) up(jzoff)back(joiner_off)right(joiner_off)zrot(45)boxjoiner_clear(orient=ORIENT_Y_90, align=V_CENTER, cl="green");
if (jdown) down(jzoff)back(joiner_off)right(joiner_off)zrot(45)boxjoiner_clear(orient=ORIENT_Y_90, align=V_CENTER, cl="brown");
if (tubepass) zspread(l=l/2, n=tn) zrot(-45)back(face_off*sqrt(2)-.01)pc4M10_clear(orient=ORIENT_Y,align=V_BACK);
if (hm) right(face_off)back(face_off)zrot(45)hinge_mount();
if (iy) back(ps-wl/2)right(wt)yrot(-90) thread_insertM3(bl=5+wt, bz=-wt-2, $die=true);
@@ -182,7 +182,8 @@ module boxjoiner(slop=.01, align=V_FRONT, jh=JOINER_H, jw=JOINER_W, l=3, orient=
joiner(h=jh, w=jw, l=l, screwsize= $preview ? undef : .8);
}
module boxjoiner_clear(inset=5, slop=.01, jh=JOINER_H, jw=JOINER_W, align=V_FRONT, orient=ORIENT_Z) {
module boxjoiner_clear(inset=5, slop=.01, jh=JOINER_H, jw=JOINER_W, align=V_FRONT, orient=ORIENT_Z, cl=undef) {
color(cl)
orient_and_align([jw,inset,jh],orient=orient, align=align) fwd() {
cuboid([jw+slop,inset+slop,jh], align=V_BACK);
joiner_clear(h=jh, w=jw+slop);
@@ -211,7 +212,7 @@ if (PART == "corner_bottom") box_corner(zw=false, zfl=true);
if (PART == "edge_back") {
xrot(90) zrot(0) box_edge(l=lx/3, jup=true, jdown=true, flx=true, wx=false, tubepass=true, orient=ORIENT_Z);
}
if (PART == "edge_side_foot") box_edge(l=ly, rbfoot=true, flx=false, wx=true, jup=true, jdown=true, orient=ORIENT_Y);
if (PART == "edge_side_foot") box_edge(l=ly, rbfoot=true, flx=true, wx=false, jup=true, jdown=true, orient=ORIENT_Y);
if (PART == "full_box") {
up(lz/2+ps) {
// Top Corners: