Changeset 2763 for GTP/trunk/App/Demos/Vis/CHC_revisited/BinaryLoader.cpp
- Timestamp:
- 06/16/08 08:56:35 (16 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
GTP/trunk/App/Demos/Vis/CHC_revisited/BinaryLoader.cpp
r2762 r2763 175 175 geometry.resize(shapeCount); 176 176 177 for (size_t i = 0; i < geometry.size(); ++ i) 178 geometry[i] = NULL; 179 180 177 181 int progress = 0; 178 182 179 183 for (int i = 0; i < shapeCount; ++ i) 180 184 { 181 int id; 182 istr.read(reinterpret_cast<char *>(&id), sizeof(int)); 183 185 //int id;istr.read(reinterpret_cast<char *>(&id), sizeof(int)); 184 186 SceneEntity *ent = LoadSceneEntity(istr); 185 ent->id = i d;186 187 geometry[i d] = ent;187 ent->id = i; 188 189 geometry[i] = ent; 188 190 189 191 int p = (i + 1) * 100 / shapeCount; … … 191 193 if (p >= progress) 192 194 { 193 //cout << "% loaded: " << p << endl;195 cout << "% loaded: " << p << endl; 194 196 progress += 10; 195 197 } 196 198 } 197 199 200 for (size_t i = 0; i < geometry.size(); ++ i) 201 { 202 if (!geometry[i]) 203 Debug << "error: index " << i << " missing" << endl; 204 } 205 198 206 cout << "bin loading finished" << endl; 199 207
Note: See TracChangeset
for help on using the changeset viewer.