- Timestamp:
- 01/09/09 19:50:56 (15 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
GTP/trunk/App/Demos/Vis/FriendlyCulling/src/BvhExporter.cpp
r3260 r3261 78 78 bool BvhExporter::Export(const string &filename, Bvh *bvh) 79 79 { 80 cout << " Info: Exportingto file '" << filename.c_str() << "'" << endl;80 cout << "Exporting bvh to file '" << filename.c_str() << "'" << endl; 81 81 82 82 FILE *fw = fopen(filename.c_str(), "wb"); … … 121 121 } 122 122 123 cout << "writing " << (int)triangles.size() << " triangle ids ..." << endl; 124 123 125 // export sorted triangle IDs 124 for (int i = 0; i < triangles.size(); ++i)126 for (int i = 0; i < (int)triangles.size(); ++i) 125 127 { 126 128 fwrite(&triangles[i], sizeof(int), 1, fw); 127 129 } 128 130 131 cout << "writing bvh nodes ..." << endl; 132 129 133 SaveNode(bvh->GetStaticRoot(), fw); 130 134
Note: See TracChangeset
for help on using the changeset viewer.