Rotate a curve

volume (disk method)
In cylindrical coordinates
Each slice at height
V = jnp.pi * jnp.trapezoid(jax.vmap(rho_fn)(z_grid)**2, dx=dz)surface area
Arc length along the curve:
Each segment
Parametric form
drho = jax.vmap(jax.grad(rho_fn))(z_grid)
S = 2*jnp.pi * jnp.trapezoid(rho_vals * jnp.sqrt(1 + drho**2), dx=dz)example: cone
Line