Changeset 1656 for GTP/trunk/Lib/Illum
- Timestamp:
- 10/20/06 12:56:04 (18 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
GTP/trunk/Lib/Illum/GPUObscurancesGT/src/CMesh.cpp
r953 r1656 124 124 // Read root element and decide from there what type 125 125 String response; 126 String::iterator iter;127 128 126 TiXmlDocument* doc = new TiXmlDocument(name); 129 127 // Some double-parsing here but never mind … … 220 218 const char *cad = tri->Attribute("colours_diffuse"); 221 219 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; 224 225 225 226 m_pObject._geo[0]._triSet[i]._numVer = NVer; … … 254 255 m_pObject._geo[0]._triSet[i]._tex[2 * j + 1] = atof(aux1->Attribute("v")); 255 256 256 aux1 = aux->FirstChildElement("colour_diffuse");257 /*->aux1 = aux->FirstChildElement("colour_diffuse"); 257 258 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"));*/ 258 262 259 263 if (color) 260 264 { 265 aux1 = aux->FirstChildElement("colour_diffuse"); 266 response = aux1->Attribute("value"); 267 261 268 string = response.c_str(); 262 269 k = 0;
Note: See TracChangeset
for help on using the changeset viewer.