So this ift window filtering mostly works. It isn't perfect, because on the corners of the cube the window is higher than the spot itself. Maybe this can be fixed by choosing a larger spot area. I changed from exponential-ing to a Hanning window, and I like this much much better. I also shouldn't have been using a kvector to calculate distances away, I needed to know the distance to the nearest face. I now calculate this and feed it to the hanning function.
Got rid of my debugging and useless code, and re-enabled omp