2d bridge, with topological gradient computations