def getFlippedLoop(elementNode, loop, prefix):
 flipPoints(elementNode, loop, prefix)
 if getShouldReverse(elementNode, prefix):
  loop.reverse()
 return loop

def getFlippedLoop ( elementNode , loop , prefix ) : flipPoints ( elementNode , loop , prefix ) if getShouldReverse ( elementNode , prefix ) : loop . reverse ( ) return loop
get flipped loop .