Quick help, please! B-splines and Bezier Curves...

Okay another programming assignment in my class is overdue so I need to write a program QUICK. I know that openGL has built in functions for Bezier curves, but given a bunch of points in 3space I need to construct a B-spline curve within the given polygon, a quadradic and cubic B-spline that is…

Anyone have any references or existing program that has such code?

I know, I should do it myself, but I honestly don’t feel like it, besides I’m too busy as it is…