Ignore:
Timestamp:
01/09/09 19:50:56 (15 years ago)
Author:
mattausch
Message:

worked on powerplant loading

File:
1 edited

Legend:

Unmodified
Added
Removed
  • GTP/trunk/App/Demos/Vis/FriendlyCulling/src/BvhExporter.cpp

    r3260 r3261  
    7878bool BvhExporter::Export(const string &filename, Bvh *bvh) 
    7979{ 
    80          cout << "Info: Exporting to file '" << filename.c_str() << "'" << endl; 
     80         cout << "Exporting bvh to file '" << filename.c_str() << "'" << endl; 
    8181   
    8282         FILE *fw = fopen(filename.c_str(), "wb"); 
     
    121121         } 
    122122 
     123         cout << "writing " << (int)triangles.size() << " triangle ids ..." << endl; 
     124 
    123125         // export sorted triangle IDs 
    124          for (int i = 0; i < triangles.size(); ++i)  
     126         for (int i = 0; i < (int)triangles.size(); ++i)  
    125127         { 
    126128                 fwrite(&triangles[i], sizeof(int), 1, fw); 
    127129         } 
    128130 
     131         cout << "writing bvh nodes ..." << endl; 
     132          
    129133         SaveNode(bvh->GetStaticRoot(), fw); 
    130134          
Note: See TracChangeset for help on using the changeset viewer.