Harmonic maps from a simplicial complex and geometric rigidity