Add holes for x stepper mount to bearing mount and column

This commit is contained in:
Kelvin Ly 2025-03-21 18:07:06 -04:00
parent d0728c5392
commit 2f0c46dcdf
1 changed files with 14 additions and 6 deletions

View File

@ -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")