by dcowden 3 years, 10 months ago
69 times 1.20s avg. build time

Twisted Gear

A sample gear that uses twistExtrude, and the gear plugin

License: CreativeCommons-ShareAlike Publicly Listed: True Tags: gear,plugin,extrude,twist

Log in to download models or make your own copy!

Auto Apply Changes

  1. UOM = "mm"
  2. num_teeth = IntegerParam(min=0.0,max=120,presets={'default':60},group="Basics", desc="Number of Teeth")
  3. pitch = FloatParam(min=0.0,presets={'default':4},group="Basics", desc="Pitch of the gear")
  4. pressure_angle = FloatParam(min=0.0,max=120.0,presets={'default':14.5},group="Basics", desc="Pressure Angle")
  5. twist_angle = FloatParam(min=0.0,max=20.0,presets={'default':8.0},group="Basics", desc="Twist Angle ( degrees )")
  6. thickness = FloatParam(min=0.1,max=500.0,presets={'default':2.0,'short':10.0},group="Basics", desc="Thickness of the gear")
  7. #
  8. # Your build method. It must return a solid object
  9. #
  10. def build():
  11. pts = plugins.gears.make_gear(pressure_angle.value,num_teeth.value,pitch.value) #make involutes
  12. s = Workplane("XY").polyline(pts).extrude(thickness.value)
  13. return s