fixed one bug for computing phi of the 3D point-wise projector.