Changeset 1314 for GTP/trunk/Lib/Vis/Preprocessing/src/ObjParser.cpp
- Timestamp:
- 09/03/06 03:13:29 (18 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
GTP/trunk/Lib/Vis/Preprocessing/src/ObjParser.cpp
r1292 r1314 13 13 #include "Environment.h" 14 14 #include "ResourceManager.h" 15 15 #include "KdIntersectable.h" 16 16 17 17 … … 93 93 94 94 // correct face index (nust be relative to start of verices) 95 (*vit) = distance(hashTable.begin(), hit);95 (*vit) = (int)distance(hashTable.begin(), hit); 96 96 //Debug << "new idx: " << (*vit) << endl; 97 97 } … … 185 185 Face *face = LoadFace(str, vertices, hashTable); 186 186 if (!face) break; 187 187 #if 1 188 188 faces.push_back(face); 189 190 189 if (faces.size() >= nMaxFaces) 191 190 { … … 197 196 198 197 if (parents) 199 {200 198 AssociateFacesWithInstance(mi, *parents); 201 } 202 199 203 200 // reset tables 204 201 hashTable.clear(); 205 202 faces.clear(); 206 203 } 204 #else 205 root->mGeometry.push_back(new FaceIntersectable(face)); 206 hashTable.clear(); 207 #endif 207 208 break; 208 } 209 } // end face 209 210 default: 210 211 break; 211 212 } 212 213 213 } 214 214 215 215 // there could be faces remaining 216 if ( 1 &&!faces.empty())216 if (!faces.empty()) 217 217 { 218 218 Mesh *mesh = CreateMesh(faces, hashTable); … … 222 222 223 223 if (parents) 224 {225 224 AssociateFacesWithInstance(mi, *parents); 226 } 227 225 228 226 root->mGeometry.push_back(mi); 229 227 }
Note: See TracChangeset
for help on using the changeset viewer.