From 2f0c46dcdf58b50a4ce85824d1b201244c23af42 Mon Sep 17 00:00:00 2001 From: Kelvin Ly Date: Fri, 21 Mar 2025 18:07:06 -0400 Subject: [PATCH] Add holes for x stepper mount to bearing mount and column --- gantry.py | 20 ++++++++++++++------ 1 file changed, 14 insertions(+), 6 deletions(-) diff --git a/gantry.py b/gantry.py index bd9f494..9a57aab 100644 --- a/gantry.py +++ b/gantry.py @@ -229,18 +229,26 @@ class Gantry: stepper_mount_w.transformed(offset=(0, 0, 0), rotate=(180, 0, 0)) ) .hole(40) - .copyWorkplane( - stepper_mount_w.transformed(offset=(0, -ballscrew_x_offset, 5)) - ) - .rect(78, 30) - .vertices() - .hole(5) # .copyWorkplane(stepper_mount_w) # .circle(40) # .extrude(10) ) self.stepper_mount = self.ball_screw_model.fixedBearingHoles(self.stepper_mount) + def stepper_mount_holes(w): + return ( + w.copyWorkplane( + stepper_mount_w.transformed(offset=(0, -ballscrew_x_offset, 5)) + ) + .rect(78, 26) + .vertices() + .hole(5) + ) + + self.stepper_mount = stepper_mount_holes(self.stepper_mount) + self.right = stepper_mount_holes(self.right) + self.right_bearing_mount = stepper_mount_holes(self.right_bearing_mount) + def assembly(self): return ( cq.Assembly(name="gantry")