A method for determining values of a set of one or more geometric parameters of a patients heart, the method comprising: a) making impedance measurements of the patients chest, at least some of the measurements using internal electrodes and b) finding values of the set of parameters that provide a good fit to results of the impedance measurements.