OpenGL Vertex - Texture Mapping
for (i = 0, i &lt; 3, ++i)
    glTexCoord3d(texturePoint[i].x, texturePoint[i].y, 0);
    glVertex3d(v[i]-&gt;x(), v[i]-&gt;y(), v[i]-&gt;z());


This code calls glTexCoord3d three times and glVertex3d only once. You need more braces around your for loop.