Ignore:
Timestamp:
02/12/07 19:00:37 (17 years ago)
Author:
mattausch
Message:

changed pvs loading: loading objects in a first pass

File:
1 edited

Legend:

Unmodified
Added
Removed
  • GTP/trunk/Lib/Vis/Preprocessing/src/ViewCellsManager.cpp

    r2113 r2115  
    2727#include "PerfTimer.h" 
    2828 
    29 //#include "HashPvs.h" 
    30  
    31  
    3229 
    3330#define USE_RAY_LENGTH_AS_CONTRIBUTION 0 
     
    173170        } 
    174171                 
    175     Debug << "casting strategies: "; 
     172    Debug << "casting initial strategies: "; 
     173 
    176174        for (int i = 0; i < (int)mStrategies.size(); ++ i) 
    177175                Debug << mStrategies[i] << " "; 
     
    10201018 
    10211019 
     1020ViewCellsManager *ViewCellsManager::LoadViewCells(const string &filename,  
     1021                                                                                                  ObjectContainer &pvsObjects, 
     1022                                                                                                  bool finalizeViewCells, 
     1023                                                                                                  BoundingBoxConverter *bconverter) 
     1024                                                                                                  
     1025{ 
     1026        ObjectContainer dummys; 
     1027 
     1028        return LoadViewCells(filename,  
     1029                                                 pvsObjects, 
     1030                                                 dummys, 
     1031                                                 finalizeViewCells, 
     1032                                                 bconverter); 
     1033} 
    10221034 
    10231035 
     
    10471059        } 
    10481060         
    1049         //cout << "viewcells parsed " <<endl; 
    1050  
    10511061        if (0) 
    10521062        { 
     
    11171127                if (mUseKdPvs) 
    11181128                { 
    1119                         vector<KdIntersectable *>::iterator kit, kit_end = GetPreprocessor()->mKdTree->mKdIntersectables.end(); 
     1129                        vector<KdIntersectable *>::iterator kit, kit_end =  
     1130                                GetPreprocessor()->mKdTree->mKdIntersectables.end(); 
    11201131 
    11211132                        int id = 0; 
     
    11271138                                obj->SetId(id); 
    11281139         
    1129                                 stream << "<BoundingBox" << " id=\"" << id << "\"" 
    1130                                            << " min=\"" << box.Min().x << " " << box.Min().y << " " << box.Min().z << "\"" 
    1131                                            << " max=\"" << box.Max().x << " " << box.Max().y << " " << box.Max().z << "\" />" << endl; 
     1140                                stream << "<BoundingBox" << " id=\""    << id << "\"" 
     1141                                           << " min=\""      << box.Min().x << " " << box.Min().y << " " << box.Min().z << "\"" 
     1142                                           << " max=\""      << box.Max().x << " " << box.Max().y << " " << box.Max().z << "\" />" << endl; 
    11321143                        } 
    11331144                } 
     
    11431154                                //-- the bounding boxes 
    11441155 
    1145                                 stream << "<BoundingBox" << " id=\"" << (*oit)->GetId() << "\"" 
    1146                                            << " min=\"" << box.Min().x << " " << box.Min().y << " " << box.Min().z << "\"" 
    1147                                            << " max=\"" << box.Max().x << " " << box.Max().y << " " << box.Max().z << "\" />" << endl; 
     1156                                stream << "<BoundingBox" << " id=\""    << (*oit)->GetId()    << "\"" 
     1157                                           << " min=\""      << box.Min().x << " " << box.Min().y << " " << box.Min().z << "\"" 
     1158                                           << " max=\""      << box.Max().x << " " << box.Max().y << " " << box.Max().z << "\" />" << endl; 
    11481159                        } 
    11491160                } 
Note: See TracChangeset for help on using the changeset viewer.