def addInfillBoundary(infillBoundary, nestedRings):
 infillPoint = infillBoundary[0]
 for nestedRing in nestedRings:
  if euclidean.isPointInsideLoop(nestedRing.boundary, infillPoint):
   nestedRing.infillBoundaries.append(infillBoundary)
   return

def addInfillBoundary ( infillBoundary , nestedRings ) : infillPoint = infillBoundary [ 0 ] for nestedRing in nestedRings : if euclidean . isPointInsideLoop ( nestedRing . boundary , infillPoint ) : nestedRing . infillBoundaries . append ( infillBoundary ) return
add infill boundary to the nested ring that contains it .