geometry/platonic: Make revolve_around_curve support closed ends