Improved formatting
This commit is contained in:
parent
2c9d532e19
commit
4e41e7d1a6
@ -11,15 +11,18 @@ follow_focus_width=10.0
|
|||||||
# Constants
|
# Constants
|
||||||
follow_focus_mod=0.8
|
follow_focus_mod=0.8
|
||||||
follow_focus_inner_thickness=5.0
|
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
|
# Create follow focus ring
|
||||||
ring = SpurGear(module=follow_focus_mod, teeth_number=follow_focus_num_teeth,\
|
ring = SpurGear(module=follow_focus_mod,
|
||||||
width=follow_focus_width, bore_d=lens_ring_diameter)
|
teeth_number=follow_focus_num_teeth,
|
||||||
|
width=follow_focus_width,
|
||||||
|
bore_d=lens_ring_diameter)
|
||||||
|
|
||||||
# Render
|
# Render
|
||||||
wp = cq.Workplane('XY').gear(ring)
|
wp = cq.Workplane('XY').gear(ring)
|
||||||
show_object(wp)
|
show_object(wp)
|
||||||
|
|
||||||
# Export STL
|
# Export STL
|
||||||
cq.exporters.export(wp, 'follow_focus_ring{}.stl'.format(lens_name))
|
cq.exporters.export(wp, 'follow_focus_ring{}.stl'.format(lens_name))
|
||||||
|
Loading…
x
Reference in New Issue
Block a user