Converting Input from Bézier surface representation  to a polygonal representation and then display it with OpenGL