3D curves and splines

Hi, I am dealing with complex 3D curves. Does anyone knows how to make 3D curves with splines? All the spline mathematics is 2D. How I can make curves that curles in all directions (like a protein molecule for example).

Hi !

A spline works just as fine in 3D as in 2D, what’s the problem ?