diff --git a/Makefile b/Makefile index c85d0a5..e8532f2 100644 --- a/Makefile +++ b/Makefile @@ -37,3 +37,5 @@ head_corner_rear.png: bracket.scad bracket.json head_corner.png: bracket.scad bracket.json openscad -P bracket.json -D 'part="head_corner_rear"' -D 'mate=true' bracket.scad --colorscheme Metallic --render -o head_corner.png +head_corner_clean.stl: bracket.scad bracket.json + openscad -P bracket.json -D 'part="head_corner_rear"' -D 'plate=true' -D 'ring=false' bracket.scad -o head_corner_clean.stl diff --git a/bracket.scad b/bracket.scad index e1c134a..8402ed9 100644 --- a/bracket.scad +++ b/bracket.scad @@ -5,22 +5,23 @@ include include /* [Params] */ -platfoot_x = 50.44; -platfoot_y = 25.42; -platmid_x = 40.12; -headpost_x = 38.08; -headpost_y = 38.08; -footcrossyz = 38.08; -headcross_yz = 25.00; +platfoot_x = 51; +platfoot_y = 26; +platmid_x = 41; +headpost_x = 39; +headpost_y = 39; +footcrossyz = 39; +headcross_yz = 26.00; footboard_y=19; footboard_z=130; LegOff = 18; LegGap=4; headcrossgasket=13; cornergasket=5; +ring=true; /* [Render Options] */ -part=""; // [ none, head_corner_rear, head_corner_front, foot_corner_front, foot_corner_rear, head_cross_front, head_cross_rear, foot_cross_front, foot_cross_rear, head_cross_gasket, corner_gasket ] +part=""; // [ none, head_corner_rear, head_corner_front, foot_corner_front, foot_corner_rear, head_cross_front, head_cross_rear, foot_cross_front, foot_cross_rear, head_cross_gasket, corner_gasket, head_corner_test ] model = "none"; // ["none", "corner_leg", "center_leg"] plate = false; mate = false; @@ -50,7 +51,7 @@ module screw_channel() { fwd(80)rotate([-90,180,0])m4s_clear(bl=100, drop=false); } -module head_rear() { +module head_rear(ring=ring) { blockz=headcross_yz+2*10; difference() { union() { @@ -58,12 +59,12 @@ module head_rear() { platfoot_x+16+LegOff, headpost_y+footboard_y, blockz], fillet=3, edges=EDGES_BACK+EDGES_Y_ALL, align=V_FRONT+V_TOP); - fwd(10)up(blockz/2)right(40-4)rotate([90,0,-45])rotate_extrude(angle=360) left(18) circle(d=10); + if (ring) { fwd(10)up(blockz/2)right(40-4)rotate([90,0,-45])rotate_extrude(angle=360) left(18) circle(d=10); } } //%footboard(); headpost(y=2*headpost_y); - left(44)up(blockz/2)cuboid([50, 150,25]); // crossbar + left(44)up(blockz/2)cuboid([50, 150,headcross_yz]); // crossbar // Screw Holes rx = 5 + headpost_x/2; right(rx)up(blockz-5) screw_channel();