hello,
Curent CVS version of newWave is a primitive that range from -1 to (grid-1 / grid). here is a diff that fix this small bug.
with this fix, newWave is really draw from -1 to 1, and then it can be used as a generic mesh, specially when working with vertex shader.
so, i think a mesh generator is not needed.
cyrille
142c142 < GLfloat size = 2.*m_size / (GLfloat)gridX; ---
GLfloat size = 2.*m_size / (GLfloat)(gridX-1);
191c191 < glVertex3f( (i-gridX/2)*size, (j-gridY/2)*size, posit[i][j]*m_height); ---
glVertex3f( (i-(gridX-1)/2)*size, (j-(gridY-1)/2)*size, posit[i][j]*m_height);
198c198 < glVertex3f( (i+1-gridX/2)*size, (j-gridY/2)*size, posit[i+1][j]*m_height); ---
glVertex3f( (i+1-(gridX-1)/2)*size, (j-(gridY-1)/2)*size, posit[i+1][j]*m_height);
225c225 < glVertex3f( (i-gridX/2)*size, (j-gridY/2)*size, posit[i][j]*m_height ); ---
glVertex3f( (i-(gridX-1)/2)*size, (j-(gridY-1)/2)*size, posit[i][j]*m_height );
229c229 < glVertex3f( (i+1-gridX/2)*size, (j-gridY/2)*size, posit[i+1][j]*m_height ); ---
glVertex3f( (i+1-(gridX-1)/2)*size, (j-(gridY-1)/2)*size, posit[i+1][j]*m_height );