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:
9
box.scad
9
box.scad
@@ -117,8 +117,8 @@ module box_edge(ps=PROFILE_SIZE, l=10, orient=ORIENT_Z, jh = JOINER_H,jw = JOINE
|
|||||||
difference() {
|
difference() {
|
||||||
linear_extrude(height=l, center=true)
|
linear_extrude(height=l, center=true)
|
||||||
profile(flx=flx, fly=true, wx=wx, wy=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 (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);
|
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 (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 (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);
|
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);
|
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() {
|
orient_and_align([jw,inset,jh],orient=orient, align=align) fwd() {
|
||||||
cuboid([jw+slop,inset+slop,jh], align=V_BACK);
|
cuboid([jw+slop,inset+slop,jh], align=V_BACK);
|
||||||
joiner_clear(h=jh, w=jw+slop);
|
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") {
|
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);
|
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") {
|
if (PART == "full_box") {
|
||||||
up(lz/2+ps) {
|
up(lz/2+ps) {
|
||||||
// Top Corners:
|
// Top Corners:
|
||||||
|
|||||||
Reference in New Issue
Block a user