Changeset 2042 for GTP/trunk/Lib/Vis/Preprocessing/src/ObjParser.cpp
- Timestamp:
- 01/23/07 16:11:34 (17 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
GTP/trunk/Lib/Vis/Preprocessing/src/ObjParser.cpp
r1979 r2042 85 85 while (pch != NULL) 86 86 { 87 87 const int index = (int)strtol(pch, NULL, 10) - 1; 88 88 89 // store vertex in hash table 90 //hashTable[index] = vertices[index]; 89 // store vertex in hash table 90 //hashTable[index] = vertices[index]; 91 if (index>=0) 91 92 indices.push_back(index); 92 93 93 94 95 96 97 98 99 94 //if (line == 451703) 95 // cout << index + 1 << " "; 96 97 pch = strtok(NULL, " "); 98 99 // problem: don't know how intel ray tracer tesselates 100 if ((int)indices.size() > 2) 100 101 { 101 102 const int index_2 = (int)indices.size() - 2; … … 105 106 vertices[indices[index_2]], 106 107 vertices[indices[index_3]])); 108 indices.clear(); 107 109 } 108 110 } … … 253 255 case 'f': 254 256 { 255 // cout << "f";256 257 if (loadMeshes) 257 258 {
Note: See TracChangeset
for help on using the changeset viewer.