from sympy import *
from spb import *
t = symbols("t")
circle = (3 + cos(t), sin(t))
graphics(
    surface_revolution(circle, (t, 0, 2 * pi),
        show_curve=True, rendering_kw={"opacity": 0.65},
        curve_kw={"rendering_kw": {"width": 0.05}}),
    backend=KB)