sweeping technique

Hello,
Is there any way of performing the sweeping procedure in opengl,i.e by defining a cross section and then sweep it along a defined path. Actually I want to generate a cylindrical object with a sinusoidal profile by defining a circular cross section and then sweep it over a sinusoidal path. How is that possible in opengl? Thanks.

Have a look at GLE, that might be what you need:
http://linas.org/gle/

Mikael