Ignore:
Timestamp:
02/15/07 14:45:30 (17 years ago)
Author:
mattausch
Message:
 
File:
1 edited

Legend:

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

    r2042 r2119  
    236236 
    237237        while (fgets(str, 1000, file) != NULL) 
    238         {++ line; 
     238        { 
     239                ++ line; 
    239240          switch (str[0])  
    240241                { 
    241242                case 'v': // vertex  or normal 
    242243                  { 
    243                         switch (str[1]) { 
     244                        switch (str[1])  
     245                        { 
    244246                        case 'n' : 
    245                           // normal do nothing 
    246                           break; 
     247                                // normal do nothing 
     248                                break; 
    247249                        default: 
    248                           float x, y, z; //cout << "v";  
    249                           sscanf(str + 1, "%f %f %f", &x, &y, &z); 
    250                           vertices.push_back(Vector3(x,y,z)); 
    251                           //cout << "vertex: " << vertices.back() << endl; 
     250                                float x, y, z; //cout << "v";    
     251                                sscanf(str + 1, "%f %f %f", &x, &y, &z); 
     252                                vertices.push_back(Vector3(x,y,z)); 
     253                          
    252254                        } 
    253255                        break; 
     
    258260                                { 
    259261                                        Face *face = LoadFace(str, vertices, hashTable); 
     262 
    260263                                        if (!face) break; 
    261264         
Note: See TracChangeset for help on using the changeset viewer.