calculate bounding sphere before creating mesh