They are easy to calculate for cubes and spheres, other things would have been done manually or in a 3d modelling program (which in turn use complex calculations to unwrap the UV coords from the 3d model). Even using the unwrapping method the results are pretty stuff.