Geometric rigidity of constant heat flow