def getAwayPath(path, radius):
 if (len(path) < 2):
  return path
 lastPoint = path[(-1)]
 awayPath = getAwayPoints(path, radius)
 if (len(awayPath) == 0):
  return [lastPoint]
 if (abs((lastPoint - awayPath[(-1)])) > (0.001 * radius)):
  awayPath.append(lastPoint)
 return awayPath

def getAwayPath ( path , radius ) : if ( len ( path ) < 2 ) : return path lastPoint = path [ ( - 1 ) ] awayPath = getAwayPoints ( path , radius ) if ( len ( awayPath ) == 0 ) : return [ lastPoint ] if ( abs ( ( lastPoint - awayPath [ ( - 1 ) ] ) ) > ( 0.001 * radius ) ) : awayPath . append ( lastPoint ) return awayPath
get a path with only the points that are far enough away from each other .