Reproduction of correct electrostatic field by charges and dipoles on a closed surface.