def addRackHoles(derivation, elementNode, vector3RackProfiles):
 if (len(derivation.gearHolePaths) > 0):
  vector3RackProfiles += derivation.gearHolePaths
  return
 if (derivation.rackHoleRadius <= 0.0):
  return
 addRackHole(derivation, elementNode, vector3RackProfiles, 0.0)
 rackHoleMargin = (derivation.rackHoleRadius + derivation.rackHoleRadius)
 rackHoleSteps = int(math.ceil(((derivation.rackDemilength - rackHoleMargin) / derivation.rackHoleStep)))
 for rackHoleIndex in xrange(1, rackHoleSteps):
  x = (float(rackHoleIndex) * derivation.rackHoleStep)
  addRackHole(derivation, elementNode, vector3RackProfiles, (- x))
  addRackHole(derivation, elementNode, vector3RackProfiles, x)

def addRackHoles ( derivation , elementNode , vector3RackProfiles ) : if ( len ( derivation . gearHolePaths ) > 0 ) : vector3RackProfiles += derivation . gearHolePaths return if ( derivation . rackHoleRadius <= 0.0 ) : return addRackHole ( derivation , elementNode , vector3RackProfiles , 0.0 ) rackHoleMargin = ( derivation . rackHoleRadius + derivation . rackHoleRadius ) rackHoleSteps = int ( math . ceil ( ( ( derivation . rackDemilength - rackHoleMargin ) / derivation . rackHoleStep ) ) ) for rackHoleIndex in xrange ( 1 , rackHoleSteps ) : x = ( float ( rackHoleIndex ) * derivation . rackHoleStep ) addRackHole ( derivation , elementNode , vector3RackProfiles , ( - x ) ) addRackHole ( derivation , elementNode , vector3RackProfiles , x )
add rack holes to vector3rackprofiles .