- }
- else if (strstr(vet[0].c_str(),"/"))
- {
- for( int i = 0 ; i < numIndices; i++)
+ else if( strstr( subString, "/" ) ) // Of the form A/B/C, so has points, textures and normals.
+ {
+ for( int i = 0 ; i < numIndices; i++ )
+ {
+ std::istringstream isindex( vet[i] );
+ isindex >> ptIdx[i] >> separator >> texIdx[i] >> separator2 >> nrmIdx[i];
+ }
+
+ hasTexture = true;
+ }
+ else // Of the form A/B, so has points and textures but no normals.