// Load index data DWORD* indices = new DWORD[numTriangles*3]; UINT* attributeBuffer = new UINT[numTriangles]; fin >> ignore; // triangles header text for(UINT i = 0; i < numTriangles; ++i) { fin >> indices[i*3+0]; fin >> indices[i*3+1]; fin >> indices[i*3+2]; fin >> attributeBuffer[i]; }