glEvalCoord2f

Hi. Let me try to explain what i want to do:
I need to move points along the surface. I need to have those points in some kind of pointArray so i can peform math function on them.

I’m trying to do a bezier surface with glMap2f (like the first line in a code). Than i need to get an array of point coordinates that belong to that surface probably trough command glEvalCoord2f that evaluates a point from texture coordinates u&v.

thanks

   
glMap2f(GL_MAP2_VERTEX_3, 0, 1, 3, 3,
           0, 1, 9, 3, &ctrlpoints[0][0][0]);


arrayofpoints[i][0]= glEvalCoord2f(0.5,0.3); //this is wrong, how can i get around it?