Hi, here's my question.

I've this OpenGL code working:
Code :
        glVertexPointer( 3, GL_FLOAT,         sizeof(MGVPoint), &(pts->x) );
        glColorPointer  ( 4, GL_UNSIGNED_BYTE, sizeof(MGVPoint), &(pts->r) );
        glDrawArrays   ( GL_TRIANGLE_STRIP, 0, points.size() );
As you can understand I want to plot several triangles using an array of <MGVPoint> which is a structure containing the 3 (x, y, z) coordinates in float and the colour as an unsigned byte.
This code is working fine but when I have a nan value as one of the coordinates.
Since I can't modify the source vector and I wish to avoid to draw it point-by-point, is there any way to automatically avoid to plot the points which have a nan value as one of the coordinates?

Thanks in advance,