Ignore:
Timestamp:
01/23/07 16:11:34 (17 years ago)
Author:
bittner
Message:
 
File:
1 edited

Legend:

Unmodified
Added
Removed
  • GTP/trunk/Lib/Vis/Preprocessing/src/ObjParser.cpp

    r1979 r2042  
    8585        while (pch != NULL) 
    8686        { 
    87                 const int index = (int)strtol(pch, NULL, 10) - 1; 
     87          const int index = (int)strtol(pch, NULL, 10) - 1; 
    8888                                                 
    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) 
    9192                indices.push_back(index); 
    9293                 
    93                 //if (line == 451703) 
    94                 //      cout << index + 1 << " "; 
    95  
    96                 pch = strtok(NULL, " "); 
    97  
    98                 // problem: don't know how intel ray tracer tesselates 
    99                 if ((int)indices.size() > 2) 
     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) 
    100101                { 
    101102                        const int index_2 = (int)indices.size() - 2; 
     
    105106                                                                                  vertices[indices[index_2]],            
    106107                                                                                  vertices[indices[index_3]])); 
     108                        indices.clear(); 
    107109                } 
    108110        } 
     
    253255                case 'f':  
    254256                        { 
    255                                 //      cout << "f"; 
    256257                                if (loadMeshes) 
    257258                                { 
Note: See TracChangeset for help on using the changeset viewer.