Improved formatting

This commit is contained in:
Christian Colglazier 2022-05-16 18:00:25 -04:00
parent 2c9d532e19
commit 4e41e7d1a6

View File

@ -11,11 +11,14 @@ follow_focus_width=10.0
# Constants
follow_focus_mod=0.8
follow_focus_inner_thickness=5.0
follow_focus_num_teeth=int(math.ceil((follow_focus_inner_thickness+lens_ring_diameter)/follow_focus_mod))
follow_focus_num_teeth=int(math.ceil((follow_focus_inner_thickness+lens_ring_diameter)
/follow_focus_mod))
# Create follow focus ring
ring = SpurGear(module=follow_focus_mod, teeth_number=follow_focus_num_teeth,\
width=follow_focus_width, bore_d=lens_ring_diameter)
ring = SpurGear(module=follow_focus_mod,
teeth_number=follow_focus_num_teeth,
width=follow_focus_width,
bore_d=lens_ring_diameter)
# Render
wp = cq.Workplane('XY').gear(ring)