Calculating geometric properties of three-dimensional objects from the spherical harmonic representation