def getWithoutIntersections(loop):
 lastLoopLength = len(loop)
 while (lastLoopLength > 3):
  removeIntersection(loop)
  if (len(loop) == lastLoopLength):
   return loop
  lastLoopLength = len(loop)
 return loop

def getWithoutIntersections ( loop ) : lastLoopLength = len ( loop ) while ( lastLoopLength > 3 ) : removeIntersection ( loop ) if ( len ( loop ) == lastLoopLength ) : return loop lastLoopLength = len ( loop ) return loop
get loop without intersections .