From 7af767263bce70d065c896d10db22a453bee1331 Mon Sep 17 00:00:00 2001 From: zhao Date: Sat, 4 Feb 2023 21:15:57 -0500 Subject: [PATCH] wip --- rack/sideWall.scad | 4 ++-- rack/sideWallConnector.scad | 11 +++++------ 2 files changed, 7 insertions(+), 8 deletions(-) diff --git a/rack/sideWall.scad b/rack/sideWall.scad index b80921a..8ac891b 100644 --- a/rack/sideWall.scad +++ b/rack/sideWall.scad @@ -96,10 +96,10 @@ module sideWall() { module applyMagnetConnector() { apply_p() { union() { - translate(v = [sideWallThickness, magnetMountToYBarFront + 2, magnetMountToYBarTop+1]) + translate(v = [sideWallThickness, magnetMountToYBarFront, magnetMountToYBarTop]) sideMagnetMount(); - translate(v = [sideWallThickness, magnetMountToYBarFront + 2, sideWallZ - (magnetMountToYBarTop + 1)]) + translate(v = [sideWallThickness, magnetMountToYBarFront, sideWallZ - magnetMountToYBarTop]) sideMagnetMount(); } diff --git a/rack/sideWallConnector.scad b/rack/sideWallConnector.scad index a18bfb4..8e8be95 100644 --- a/rack/sideWallConnector.scad +++ b/rack/sideWallConnector.scad @@ -18,8 +18,8 @@ magnetMountShellRadius = magnetRSlacked + 1; innerSideWallToYBarMagnetConn = magnetFaceToSideWallConnOuterYEdge + sideWallSlotToOuterYEdge - sideWallThickness; -magnetMountToYBarTop = magnetMountShellRadius; -magnetMountToYBarFront = magnetMountShellRadius + sideWallSlotToXZ; +magnetMountToYBarTop = magnetMountShellRadius + 1; +magnetMountToYBarFront = magnetMountShellRadius + sideWallSlotToXZ + 2; hingePoleR = 2; hingePoleH = 5; @@ -69,12 +69,11 @@ module sideWallConnectorMagnet() { } } - module applyMagnetMount() { magnetMountDx = magnetMountShellRadius; - magnetMountDy = magnetMountShellRadius + 2; - magnetMountDz = magnetMountShellRadius + sideWallConnLugDepression +1; + magnetMountDy = magnetMountToYBarFront - sideWallSlotToXZ; + magnetMountDz = magnetMountToYBarTop + sideWallConnLugDepression; apply_pn() { magnetMountShell(); @@ -149,7 +148,7 @@ module sideWallConnectorHinge() { module sideWallConnectorMagnetSide() { // oriented so that the xy face is the side wall's inner face difference() { - cylinder(r1=magnetMountShellRadius + 0.5,r2 = magnetMountShellRadius, h = innerSideWallToYBarMagnetConn); + cylinder(r1 = magnetMountShellRadius+0.5, r2 = magnetMountShellRadius, h = innerSideWallToYBarMagnetConn); translate(v=[0, 0, innerSideWallToYBarMagnetConn-magnetHSlacked]) cylinder(r = magnetRSlacked, h = magnetHSlacked);