It can be shown that a uniform spherically symmetric mass distribution generates an equivalent gravitational field to a point mass, so all formulae for point masses apply to bodies which can be modelled in this way.