def addCollarShaft(collarThickness, derivation, negatives, positives, xmlElement):
 if (collarThickness <= 0.0):
  addShaft(derivation, negatives, positives)
  return
 connectionEnd = Vector3(0.0, 0.0, (derivation.pinionThickness + collarThickness))
 collarDerivation = extrude.ExtrudeDerivation()
 collarDerivation.offsetPathDefault = [Vector3(0.0, 0.0, derivation.pinionThickness), connectionEnd]
 addCollarShaftSetDerivation(collarDerivation, collarThickness, derivation, negatives, positives, xmlElement)

def addCollarShaft ( collarThickness , derivation , negatives , positives , xmlElement ) : if ( collarThickness <= 0.0 ) : addShaft ( derivation , negatives , positives ) return connectionEnd = Vector3 ( 0.0 , 0.0 , ( derivation . pinionThickness + collarThickness ) ) collarDerivation = extrude . ExtrudeDerivation ( ) collarDerivation . offsetPathDefault = [ Vector3 ( 0.0 , 0.0 , derivation . pinionThickness ) , connectionEnd ] addCollarShaftSetDerivation ( collarDerivation , collarThickness , derivation , negatives , positives , xmlElement )
add collar .