def getIntersectingWithinLoops(loop, loopList, outsetLoop):
 intersectingWithinLoops = []
 for otherLoop in loopList:
  if getIsIntersectingWithinLoop(loop, otherLoop, outsetLoop):
   intersectingWithinLoops.append(otherLoop)
 return intersectingWithinLoops

def getIntersectingWithinLoops ( loop , loopList , outsetLoop ) : intersectingWithinLoops = [ ] for otherLoop in loopList : if getIsIntersectingWithinLoop ( loop , otherLoop , outsetLoop ) : intersectingWithinLoops . append ( otherLoop ) return intersectingWithinLoops
get the loops which are intersecting or which it is within .