Sweep representation of spline

I am OpenGL beginner.

Is there any sample code for Sweep representation of spline?