def getGearProfileCylinder(teeth, toothProfile):
 gearProfile = []
 toothAngleRadian = ((2.0 * math.pi) / float(teeth))
 totalToothAngle = 0.0
 for toothIndex in xrange(abs(teeth)):
  for toothPoint in toothProfile:
   gearProfile.append((toothPoint * euclidean.getWiddershinsUnitPolar(totalToothAngle)))
  totalToothAngle += toothAngleRadian
 return gearProfile

def getGearProfileCylinder ( teeth , toothProfile ) : gearProfile = [ ] toothAngleRadian = ( ( 2.0 * math . pi ) / float ( teeth ) ) totalToothAngle = 0.0 for toothIndex in xrange ( abs ( teeth ) ) : for toothPoint in toothProfile : gearProfile . append ( ( toothPoint * euclidean . getWiddershinsUnitPolar ( totalToothAngle ) ) ) totalToothAngle += toothAngleRadian return gearProfile
get gear profile for a cylinder gear .