From 82d191355130008846f5a1e3cbc5449c43e1108d Mon Sep 17 00:00:00 2001 From: "Brian S. Stephan" Date: Fri, 8 Sep 2023 13:53:51 -0500 Subject: [PATCH] remove more magic numbers, top plate is a derivative of base frame dimensions --- src/components.scad | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/src/components.scad b/src/components.scad index f854ac6..27a83db 100644 --- a/src/components.scad +++ b/src/components.scad @@ -43,11 +43,14 @@ lever_mount_y = 95; lever_mount_z = 2; // case dimensions +// base frame box. reminder: top of inside (including mounts) is chopped by top_plate_z for plates frame_x = 183; frame_y = 208; -frame_z = 50; // reminder: inside (including mounts) is chopped by top_plate_z for plates -top_plate_x = 175; -top_plate_y = 200; +frame_z = 50; + +// top plate, which can either be the whole plate ("inset") or the mounting frame for a plate that overhangs +top_plate_x = frame_x - 8; +top_plate_y = frame_y - 8; top_plate_z = 5; plate_to_frame_point_x = (top_plate_x/2)-10;