Ignore:
Timestamp:
08/20/06 22:48:01 (18 years ago)
Author:
mattausch
Message:
 
File:
1 edited

Legend:

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

    r1221 r1233  
    1 #include  <stdlib.h> 
     1#include <stdlib.h> 
    22#include <iostream> 
    33#include <list> 
     
    155155        char str[100]; 
    156156         
    157         float x,y,z; 
    158         int i; 
    159  
    160157        SceneGraphNode *root = new SceneGraphNode; 
    161158         
     
    168165                { 
    169166                case 'v': 
    170                         cout << "v"; 
    171  
    172                         // vertex  
    173                         sscanf(str + 1, "%f %f %f", &x, &y, &z); 
    174                         vertices.push_back(Vector3(x,y,z)); 
    175                          
    176                         //Debug << "vertex: " << vertices.back() << endl; 
    177                         break; 
    178  
     167                        { 
     168                                float x,y,z; 
     169                                cout << "v"; 
     170 
     171                                // vertex  
     172                                sscanf(str + 1, "%f %f %f", &x, &y, &z); 
     173                                vertices.push_back(Vector3(x,y,z)); 
     174                                //Debug << "vertex: " << vertices.back() << endl; 
     175                                break; 
     176                        } 
    179177                case 'f':  
    180178                        { 
Note: See TracChangeset for help on using the changeset viewer.