I have a simulation with several polygonial mesh cells (Voronoi-mesh) and their centers of gravity \$P\_i\$, each with its own electrical potential.
Every cell has the same height \$h\$ all over.

How do I calculate the Resistors \$R\_{12}\$ and \$R\_{21}\$ in the equivalent circuit diagram you see below, if we know the uniform electrical resistivity \$\varrho\$?

[![Mesh Cells](https://i.stack.imgur.com/c6K5S.png)](https://i.stack.imgur.com/c6K5S.png)

One could use the formula
$$
R = \int \frac{\varrho(L)}{A(L)}\mathrm{d}L = \frac{\varrho}{h} \int \frac{1}{d(L)} \mathrm{d}L, 
$$
but in fact I do not know, which area I have to integrate over.

Planar view from top:
[![Planar view](https://i.stack.imgur.com/K4jeQ.png)](https://i.stack.imgur.com/K4jeQ.png)