Ignore:
Timestamp:
03/07/07 18:16:49 (18 years ago)
Author:
mattausch
Message:
 
Location:
GTP/trunk/Lib/Vis/Preprocessing/src
Files:
4 edited

Legend:

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

    r2199 r2205  
    633633          } else 
    634634                if (strcmp(curr, "spatial")==0) { 
    635                         Debug << "here4 spatialbox" << endl; 
    636635                  mDistributions.push_back(new SpatialBoxBasedDistribution(mPreprocessor)); 
    637636                } else 
  • GTP/trunk/Lib/Vis/Preprocessing/src/ViewCell.cpp

    r2199 r2205  
    19571957 
    19581958        //////////////////////////////////////////////// 
    1959         // for interiors, pvs can be stored using different methods 
     1959        //-- for interiors, pvs can be stored using different methods 
    19601960        // 
    19611961 
  • GTP/trunk/Lib/Vis/Preprocessing/src/ViewCellsManager.cpp

    r2199 r2205  
    7676mPreprocessor(NULL), 
    7777mViewCellsTree(viewCellsTree), 
    78 mUsePredefinedViewCells(false) 
     78mUsePredefinedViewCells(false), 
     79mMixtureDistribution(NULL) 
    7980{ 
    8081        mViewSpaceBox.Initialize(); 
     
    24142415  stat.avgRelPvsIncrease = 0.0f; 
    24152416  stat.devRelPvsIncrease = 0.0f; 
    2416    
     2417  stat.renderCost = 0.0f; 
     2418 
    24172419  if (mPerViewCellStat.size() != mViewCells.size()) { 
    24182420        // reset the pvs size array after the first call to this routine 
     
    24272429  Environment::GetSingleton()->GetBoolValue("Preprocessor.evaluateFilter", evaluateFilter); 
    24282430 
     2431  const float vol = mViewSpaceBox.GetVolume(); 
     2432 
    24292433  for (i=0; it != mViewCells.end(); ++ it, i++)  
    24302434        { 
     
    24322436          if (viewcell->GetValid()) { 
    24332437                const float pvsCost = mViewCellsTree->GetPvsCost(viewcell); 
     2438                const float renderCost = pvsCost * viewcell->GetVolume() / vol; 
    24342439 
    24352440                if (pvsCost < stat.minPvs) 
     
    24392444                 
    24402445                stat.avgPvs += pvsCost; 
     2446                stat.renderCost += renderCost; 
    24412447 
    24422448                const float pvsEntries = (float)mViewCellsTree->GetPvsEntries(viewcell); 
  • GTP/trunk/Lib/Vis/Preprocessing/src/ViewCellsManager.h

    r2199 r2205  
    113113                float maxPvs; 
    114114                float avgPvs; 
     115                float renderCost; 
    115116                float avgPvsEntries; 
    116117 
Note: See TracChangeset for help on using the changeset viewer.