We've had several questions regarding calculation and plotting of electron density.
The electrostatic potential represents the interaction between a point charge at a given point $\mathbf{r}$ in a system of atoms, given by: $$V(\mathbf{r})=\sum_{A=1}^{N_{\text {atoms }}} \frac{Z_{A}}{\left|\mathbf{R}_{A}-\mathbf{r}\right|}-\int \frac{\rho\left(\mathbf{r}^{\prime}\right)}{\left|\mathbf{r}-\mathbf{r}^{\prime}\right|} d \mathbf{r}^{\prime}$$
The first part of this is easy - it's the classical Coulomb formula between the atomic nuclear charges $Z_A$ at positions $R_A$ and the point $\mathbf{r}$.
The second piece involves an integral over the electron density $\rho$
I'd like to evaluate the electrostatic potential at a set of points, either over a grid or vertices of a surface mesh. Ideally, I'd like to see the algorithm as well as an open source implementation.