This is pretty easy to do in OpenSCAD, open source at
www.openscad.org, with lots of great examples.
It requires coding in a C-like language. There are (I think not free) block versions but I do not know their functionality.
Finally our Make:Geometry, Make:Trigonometry and Make:Calculus books each have open-source 3D printable libraries you can browse (in OpenSCAD and select STLs). All are linked on our site,
nonscriptum.com. The surface of revolution model in Chapter 7 of Make:Calculus I think does what you want. You specify the curve and it creates the volume swept out by it and the curve (which you can then connect with wire and demonstrate the sweep).
Joan Horvath
Co-founder, Nonscriptum LLC
(And co-author of Make: math books)