Calculate bounding sphere in code