def getCircleIntersectionLoops(circleIntersections):
 circleIntersectionLoops = []
 for circleIntersection in circleIntersections:
  if (not circleIntersection.steppedOn):
   circleIntersectionLoop = [circleIntersection]
   circleIntersectionLoops.append(circleIntersectionLoop)
   addCircleIntersectionLoop(circleIntersectionLoop, circleIntersections)
 return circleIntersectionLoops

def getCircleIntersectionLoops ( circleIntersections ) : circleIntersectionLoops = [ ] for circleIntersection in circleIntersections : if ( not circleIntersection . steppedOn ) : circleIntersectionLoop = [ circleIntersection ] circleIntersectionLoops . append ( circleIntersectionLoop ) addCircleIntersectionLoop ( circleIntersectionLoop , circleIntersections ) return circleIntersectionLoops
get all the loops going through the circle intersections .