From ec816cc443a32d6399ac4d1167c6aedf34fc26d3 Mon Sep 17 00:00:00 2001 From: Reed Krantz Date: Thu, 16 Jul 2026 01:34:42 -0500 Subject: [PATCH] feat(cad): add a tolerance for the shaft and correct PolarLocations usage --- cad/build.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/cad/build.py b/cad/build.py index 76cd55d..56c3cb8 100644 --- a/cad/build.py +++ b/cad/build.py @@ -119,7 +119,7 @@ def build_drive_shaft_bar_adapter(): # extrusion screw holes with Locations((0, 0, height - ext_screw_hole_offset)): - with PolarLocations(4, 4): + with PolarLocations(0, 4): with Locations(Rotation(0, 90, 0)): Hole(ext_screw_hole_diam / 2) @@ -129,7 +129,7 @@ def build_drive_shaft_bar_adapter(): with Locations((-l, -l), (-l, l), (l, -l), (l, l)): CounterBoreHole(shaft_hub_screw_diam / 2, shaft_hub_screw_head_diam / 2, shaft_hub_screw_head_depth, thickness + shaft_hub_screw_depth) with Locations(drive_shaft_bar_adapter.faces().sort_by(Axis.Z)[0].center()): - Hole(shaft_hub_bore_diam / 2) + Hole((shaft_hub_bore_diam + 0.5) / 2) Hole(shaft_hub_center_diam / 2, shaft_hub_center_depth) return drive_shaft_bar_adapter