def getLoopWithoutCloseSequentialPoints(close, loop):
 if (len(loop) < 2):
  return loop
 lastPoint = loop[(-1)]
 loopWithoutCloseSequentialPoints = []
 for point in loop:
  if (abs((point - lastPoint)) > close):
   loopWithoutCloseSequentialPoints.append(point)
  lastPoint = point
 return loopWithoutCloseSequentialPoints

def getLoopWithoutCloseSequentialPoints ( close , loop ) : if ( len ( loop ) < 2 ) : return loop lastPoint = loop [ ( - 1 ) ] loopWithoutCloseSequentialPoints = [ ] for point in loop : if ( abs ( ( point - lastPoint ) ) > close ) : loopWithoutCloseSequentialPoints . append ( point ) lastPoint = point return loopWithoutCloseSequentialPoints
get loop without close sequential points .