So this is an absolutely amazing gear plugin! Huge blessing for me and my 3d printer. THANKYOU!
Small bug that I fixed. The plugin only except's values in inches for the "pitch radius/rack" user input field.
For my 3d printer you pretty much want to work in mm because everything in that world is in mm. Anyhow changes outlined below for making this universally compatible regardless of what unit it designated in the user input fields.
Updated plugin for universal unit compatibility in user input fields.
Select Code 1:
# Generates an Involute Tooth Gear
class SPGear
# default values for dialog box
@@teeth = 15
@@ang_pressure = 20.0 # degrees
@@rad_pitch = 10.0.inch
@@face_width = 3.0
@@ang_helix = 0.0
@@ang_bevel = 0.0
Change To:
# Generates an Involute Tooth Gear
class SPGear
# default values for dialog box
@@teeth = 15
@@ang_pressure = 20.0 # degrees
@@rad_pitch = 10.0.to_f.to_l
@@face_width = 3.0.to_f.to_l
@@ang_helix = 0.0
@@ang_bevel = 0.0
Select Code 2:
@teeth = teeth.abs
@ang_pressure = ang_pressure.degrees
@rad_pitch = rad_pitch.to_f
@face_width = face_width.to_f
@ang_helix = ang_helix
@ang_bevel = ang_bevel.degrees
Change To:
@teeth = teeth.abs
@ang_pressure = ang_pressure.degrees
@rad_pitch = rad_pitch.to_f.to_l
@face_width = face_width.to_f.to_l
@ang_helix = ang_helix
@ang_bevel = ang_bevel.degrees