Text this: A generalization of the second Pappus–Guldin theorem