periodize also 2d decomposition version of trilinear interpolation