Z center models

Models have all been Z centered now.
This commit is contained in:
sjc
2026-05-20 14:55:27 -04:00
parent 7c8a337935
commit 2ccd2e9fa2

View File

@@ -112,13 +112,13 @@ module corner_gasket(yd=cornergasket) {
module foot_front() { module foot_front() {
blockz= footcrossyz + 2*10; // 95; blockz= footcrossyz + 2*10; // 95;
difference() { difference() {
right(LegOff/2-4)cuboid([platfoot_x+16+LegOff,platfoot_y+footboard_y,blockz], fillet=3, edges=EDGES_FRONT+EDGES_Y_ALL, align=V_FRONT+V_TOP); right(LegOff/2-4)cuboid([platfoot_x+16+LegOff,platfoot_y+footboard_y,blockz], fillet=3, edges=EDGES_FRONT+EDGES_Y_ALL, align=V_FRONT);
back(.01)platfoot(); back(.01)platfoot();
// Screw Holes // Screw Holes
rx= 5 + headpost_x/2; rx= 5 + headpost_x/2;
bz = -40; bz = -40;
bl = 58 - bz; bl = 65 - bz;
up(blockz/2)zspread(n=3, l=blockz-10) up(0*blockz/2)zspread(n=3, l=blockz-10)
right(rx+LegOff) rotate([-90,0,0]) rotate([0,0,180]) m4s_clear(bl=bl, bz=bz, drop=true, sh=0); right(rx+LegOff) rotate([-90,0,0]) rotate([0,0,180]) m4s_clear(bl=bl, bz=bz, drop=true, sh=0);
up(blockz/2)left(32) zspread(n=2, l=blockz-10) rotate([-90,0,0]) rotate([0,0,180]) m4s_clear(bl=bl, bz=bz, drop=true, sh=0); up(blockz/2)left(32) zspread(n=2, l=blockz-10) rotate([-90,0,0]) rotate([0,0,180]) m4s_clear(bl=bl, bz=bz, drop=true, sh=0);
} }
@@ -129,22 +129,17 @@ module foot_rear() {
z = footcrossyz + 2*10; z = footcrossyz + 2*10;
difference() { difference() {
union() { union() {
left(LegOff/2+4)back(footboard_y) cuboid([platfoot_x+16+LegOff,headpost_y+footboard_y, z], fillet=3, edges=EDGES_BACK+EDGES_Y_ALL, align=V_FRONT+V_TOP); left(LegOff/2+4)back(footboard_y) cuboid([platfoot_x+16+LegOff,headpost_y+footboard_y, z], fillet=3, edges=EDGES_BACK+EDGES_Y_ALL, align=V_FRONT);
fwd(10)up(z/2)right(40-4)rotate([90,0,-45])rotate_extrude(angle=360) left(18) circle(d=10); fwd(10)up(0*z/2)right(40-4)rotate([90,0,-45])rotate_extrude(angle=360) left(18) circle(d=10);
} }
footboard();
headpost(x=footpost_y, y=2*footpost_y); headpost(x=footpost_y, y=2*footpost_y);
left(44)up(z/2)cuboid([50, 150, footcrossyz]); // crossbar left(44)up(0*z/2)cuboid([50, 150, footcrossyz]); // crossbar
// Screw Holes // Screw Holes
//rx = 5 + headpost_x/2; //rx = 5 + headpost_x/2;
//rx= platfoot_y + (16+LegOff)/2; //rx= platfoot_y + (16+LegOff)/2;
rx = 5 + headpost_x/2; rx = 5 + headpost_x/2;
right(rx)up(z-5) screw_channel(); right(rx) zspread(n=3, l=z-10) screw_channel();
right(rx)up(z/2) screw_channel(); left(50)zspread(n=2, l=z-10) screw_channel();
right(rx)up(5) screw_channel();
left(50)up(z-5) screw_channel();
left(50)up(5) screw_channel();
} }
} }