Updated footcross to be based on right variables

This commit is contained in:
sjc
2026-05-19 09:48:15 -04:00
parent 5f7aee253c
commit 17a7bfcd31

View File

@@ -10,8 +10,9 @@ platfoot_y = 26;
platmid_x = 41; platmid_x = 41;
headpost_x = 39; headpost_x = 39;
headpost_y = 39; headpost_y = 39;
footcrossyz = 39; footcrossyz = 40;
headcross_yz = 26.00; headcross_yz = 26.00;
footpost_y = 40;
footboard_y=19; footboard_y=19;
footboard_z=130; footboard_z=130;
LegOff = 18; LegOff = 18;
@@ -71,7 +72,7 @@ module head_rear(ring=ring) {
right(rx)up(blockz/2) screw_channel(); right(rx)up(blockz/2) screw_channel();
right(rx)up(5) screw_channel(); right(rx)up(5) screw_channel();
left(50)up(blockz-5) screw_channel(); left(50)up(blockz-5) screw_channel();
left(50)up(5) screw_channel(foo); left(50)up(5) screw_channel();
} }
} }
@@ -126,6 +127,7 @@ module foot_front() {
} }
module foot_rear() { module foot_rear() {
blockz=headcross_yz+2*10;
z = footcrossyz + 2*10; z = footcrossyz + 2*10;
difference() { difference() {
union() { union() {
@@ -133,11 +135,12 @@ module foot_rear() {
fwd(10)up(z/2)right(40-4)rotate([90,0,-45])rotate_extrude(angle=360) left(18) circle(d=10); fwd(10)up(z/2)right(40-4)rotate([90,0,-45])rotate_extrude(angle=360) left(18) circle(d=10);
} }
footboard(); footboard();
headpost(y=2*headpost_y); headpost(x=footpost_y, y=2*footpost_y);
left(44)up(z/2)cuboid([50, 150, footcrossyz]); // crossbar left(44)up(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;
right(rx)up(z-5) screw_channel(); right(rx)up(z-5) screw_channel();
right(rx)up(z/2) screw_channel(); right(rx)up(z/2) screw_channel();
right(rx)up(5) screw_channel(); right(rx)up(5) screw_channel();
@@ -178,14 +181,14 @@ module foot_cross_front() {
cuboid([platmid_x+20, footcrossyz+10, z], fillet=3, align=V_FRONT); cuboid([platmid_x+20, footcrossyz+10, z], fillet=3, align=V_FRONT);
fwd(footcrossyz)cuboid([71, 50 , footcrossyz], align=V_BACK); fwd(footcrossyz)cuboid([71, 50 , footcrossyz], align=V_BACK);
fwd(footcrossyz)cuboid([footcrossyz, 50 , 71], align=V_BACK+V_TOP); fwd(footcrossyz)cuboid([footcrossyz, 50 , 71], align=V_BACK+V_TOP);
back(0)xspread(n=2, l=platmid_x+10) zspread(n=2, l=z-10) rotate([90,0,0]) rotate([0,0,0]) #m4s_clear(bl=65, bz=-19, drop=false, sh=.20); back(6)xspread(n=2, l=platmid_x+10) zspread(n=2, l=z-10) rotate([90,0,0]) rotate([0,0,0]) m4s_clear(bl=65, bz=-12.3, drop=false, sh=.20);
} }
} }
module foot_cross_rear() { module foot_cross_rear() {
z = footcrossyz + 2*10; z = footcrossyz + 2*10;
difference() { difference() {
cuboid([platmid_x+20, 25+10, z], fillet=3,align=V_BACK); cuboid([platmid_x+20, footcrossyz+10, z], fillet=3,align=V_BACK);
back(50/2)cuboid([platmid_x, 50 , 70], align=V_FRONT); back(50/2)cuboid([platmid_x, 50 , 70], align=V_FRONT);
back(0)xspread(n=2, l=platmid_x+10) zspread(n=2, l=z-10) rotate([90,0,0]) m4s_clear(bl=67, bz=-22, drop=false, sh=0); back(0)xspread(n=2, l=platmid_x+10) zspread(n=2, l=z-10) rotate([90,0,0]) m4s_clear(bl=67, bz=-22, drop=false, sh=0);
} }
@@ -195,7 +198,7 @@ module foot_cross_spacer() {
z = footcrossyz + 2*10; z = footcrossyz + 2*10;
difference() { difference() {
cuboid([platmid_x+20, 5,z], fillet=2); cuboid([platmid_x+20, 5,z], fillet=2);
back(10)xspread(n=2, l=platmid_x+10) zspread(n=2, l=z-10) rotate([90,0,0]) rotate([0,0,0]) #m4s_clear(bl=65, bz=-19, drop=false, sh=.20); back(10)xspread(n=2, l=platmid_x+10) zspread(n=2, l=z-10) rotate([90,0,0]) rotate([0,0,0]) m4s_clear(bl=65, bz=-19, drop=false, sh=.20);
} }
} }