PF_3D generalized to 1D