Ignore:
Timestamp:
12/08/06 23:46:17 (18 years ago)
Author:
bittner
Message:

halton generator updates

File:
1 edited

Legend:

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

    r1695 r1876  
    197197        while (fgets(str, 80, file) != NULL) 
    198198        { 
    199                 switch (str[0])  
     199          switch (str[0])  
    200200                { 
    201                 case 'v': // vertex  
    202                         { 
    203                                 float x, y, z; //cout << "v";    
    204                                 sscanf(str + 1, "%f %f %f", &x, &y, &z); 
    205                                 vertices.push_back(Vector3(x,y,z)); 
    206                                 //cout << "vertex: " << vertices.back() << endl; 
    207                                 break; 
     201                case 'v': // vertex  or normal 
     202                  { 
     203                        switch (str[1]) { 
     204                        case 'n' : 
     205                          // normal do nothing 
     206                          break; 
     207                        default: 
     208                          float x, y, z; //cout << "v";  
     209                          sscanf(str + 1, "%f %f %f", &x, &y, &z); 
     210                          vertices.push_back(Vector3(x,y,z)); 
     211                          //cout << "vertex: " << vertices.back() << endl; 
    208212                        } 
     213                        break; 
     214                  } 
    209215                case 'f':  
    210216                        { 
Note: See TracChangeset for help on using the changeset viewer.