Ignore:
Timestamp:
05/10/06 18:33:35 (18 years ago)
Author:
mattausch
Message:
 
File:
1 edited

Legend:

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

    r938 r944  
    18611861 
    18621862 
    1863 bool ViewCellsManager::ExportViewCells(const string filename, const bool exportPvs, const ObjectContainer &objects) 
     1863bool ViewCellsManager::ExportViewCells(const string filename,  
     1864                                                                           const bool exportPvs,  
     1865                                                                           const ObjectContainer &objects) 
    18641866{ 
    18651867        return false; 
     
    18801882        // active view cells 
    18811883        ViewCellContainer::const_iterator it, it_end = mViewCells.end(); 
     1884 
    18821885        for (it = mViewCells.begin(); it != it_end; ++ it) 
    18831886        { 
     
    47274730                                                                                                  ObjectContainer *objects, 
    47284731                                                                                                  Environment *env, 
     4732                                                                                                  const bool finalizeViewCells, 
    47294733                                                                                                  BoundingBoxConverter *bconverter) 
     4734                                                                                                  
    47304735{ 
    47314736        ViewCellsParser parser; 
     
    47334738        ViewCellsManager *vm = NULL; 
    47344739 
    4735         Debug << "here23 filename: " << filename << endl; 
    4736         //BoundingBoxConverter bconverter; 
    4737  
    47384740        if (parser.ParseFile(filename, &vm, objects, bconverter, env)) 
    4739         {Debug << "here25 filename: " << filename << endl; 
     4741        { 
     4742                long startTime = GetTime(); 
     4743 
    47404744                //vm->PrepareLoadedViewCells(); 
    47414745                vm->ResetViewCells(); 
     
    47454749 
    47464750                // create the meshes and compute volumes 
    4747                 vm->FinalizeViewCells(true); 
    4748  
    4749                 vm->mViewCellsTree->AssignRandomColors(); 
    4750                 Debug << (int)vm->mViewCells.size() << " view cells loaded" << endl; 
     4751                if (finalizeViewCells) 
     4752                { 
     4753                        vm->FinalizeViewCells(true); 
     4754                        vm->mViewCellsTree->AssignRandomColors(); 
     4755                } 
     4756 
     4757                Debug << (int)vm->mViewCells.size() << " view cells loaded in " 
     4758                          << TimeDiff(startTime, GetTime()) * 1e-3 << " secs" << endl; 
    47514759        } 
    47524760        else 
     
    47854793 
    47864794        //-- export the view cells and the pvs 
    4787         stream << "<ViewCells>" << endl; 
     4795        const int numViewCells = mCurrentViewCellsStats.viewCells; 
     4796 
     4797        stream << "<ViewCells number=\"" << numViewCells << "\" />" << endl; 
    47884798         
    47894799        mViewCellsTree->Export(stream, exportPvs); 
Note: See TracChangeset for help on using the changeset viewer.