Follow focus stepper motor mounting holes

This commit is contained in:
Christian Colglazier 2022-05-19 11:21:42 -04:00
parent 3d19f41dce
commit 17646f5f74

View File

@ -60,8 +60,15 @@ base = base.edges('|Z and >Y').fillet(outer_fillets)
base = base.edges('|Z and <X').fillet(outer_fillets)
base = base.edges('|Z').edges('<<Y[-2]').fillet(5)
# Shell
base = base.faces('+Z').shell(-1.6)
# Stepper motor mount points
stepper_hole_width=31.0
stepper_hole_radius=stepper_hole_width/2*math.sqrt(2)
stepper_center = cq.Workplane('XY').lineTo(0, offset).polarLine(stepper_motor_size/2, 90-slant_degree).polarLine(stepper_motor_size/2, -slant_degree).val().endPoint().toTuple()
base = base.faces('>>Z[0]').workplane().center(stepper_center[0], -stepper_center[1]).circle(22.5/2).pushPoints([(stepper_hole_radius*math.cos(math.radians(45+slant_degree)),stepper_hole_radius*math.sin(math.radians(45+slant_degree))), (stepper_hole_radius*math.cos(math.radians(135+slant_degree)),stepper_hole_radius*math.sin(math.radians(135+slant_degree))),(stepper_hole_radius*math.cos(math.radians(225+slant_degree)),stepper_hole_radius*math.sin(math.radians(225+slant_degree))),(stepper_hole_radius*math.cos(math.radians(315+slant_degree)),stepper_hole_radius*math.sin(math.radians(315+slant_degree)))]).circle(3/2).cutBlind(-1.6)
# Render
show_object(base, name='Follow Focus Base')