Changeset 1656


Ignore:
Timestamp:
10/20/06 12:56:04 (18 years ago)
Author:
igarcia
Message:
 
File:
1 edited

Legend:

Unmodified
Added
Removed
  • GTP/trunk/Lib/Illum/GPUObscurancesGT/src/CMesh.cpp

    r953 r1656  
    124124        // Read root element and decide from there what type 
    125125    String response; 
    126         String::iterator iter; 
    127  
    128126        TiXmlDocument* doc = new TiXmlDocument(name); 
    129127    // Some double-parsing here but never mind   
     
    220218                const char *cad = tri->Attribute("colours_diffuse"); 
    221219 
    222                 if (!strcmp(cad, "true")) color = true; 
    223  
     220                if (cad != NULL) 
     221                        color = true; 
     222                        //->if (!strcmp(cad, "true")) color = true;              
     223                else 
     224                        color = false; 
    224225 
    225226                m_pObject._geo[0]._triSet[i]._numVer = NVer; 
     
    254255                        m_pObject._geo[0]._triSet[i]._tex[2 * j + 1] = atof(aux1->Attribute("v")); 
    255256 
    256                         aux1 = aux->FirstChildElement("colour_diffuse"); 
     257                        /*->aux1 = aux->FirstChildElement("colour_diffuse"); 
    257258                        response = aux1->Attribute("value"); 
     259                        /*->m_pObject._geo[0]._triSet[i]._ver[3 * j] = atof(aux1->Attribute("x")); 
     260                        m_pObject._geo[0]._triSet[i]._ver[3 * j + 1] = atof(aux1->Attribute("y")); 
     261                        m_pObject._geo[0]._triSet[i]._ver[3 * j + 2] = atof(aux1->Attribute("z"));*/                     
    258262 
    259263                        if (color) 
    260264                        { 
     265                                aux1 = aux->FirstChildElement("colour_diffuse"); 
     266                                response = aux1->Attribute("value"); 
     267 
    261268                                string = response.c_str();                       
    262269                                k = 0; 
Note: See TracChangeset for help on using the changeset viewer.