Getting array of vertices using Lib3ds
<p>I'm trying to get the vertices out of a file parsed by lib3ds and I'm having a lot of issues. Namely I'm not getting the vertices I was out. The code where I try to do this is:</p>

<pre><code>//loop through meshes
for(int i = 0; i &lt; model-&gt;meshes_size; i++)
{
    Lib3dsMesh* mesh = model-&gt;meshes[i];
    //loop through the faces in that mesh
    for(int j = 0; j &lt; model-&gt;meshes[i]-&gt;nfaces; j++)
    {
        int testv = mesh-&gt;nvertices;
        Lib3dsFace face = mesh-&gt;faces[i];
        //loop through the vertices in each face
        for(int k = 0; k &lt; 3; k++)
        {
            myVertices[index] = model-&gt;meshes[i]-&gt;faces[j].index[0];
            myVertices[index + 1] = model-&gt;meshes[i]-&gt;faces[j].index[1];
            myVertices[index + 2] = model-&gt;meshes[i]-&gt;faces[j].index[2];

            index += 3;
        }
    }
}
</code></pre>

<p>Unfortunately the documentation for lib3ds is non-existent and so I can't figure this out. How do you go about getting an array of vertices using this library? Also I'm aware that 3ds is old but the format and the way the library is set up suits my purpose so please don't suggest switching to another format.</p>
