Ignore:
Timestamp:
07/18/06 19:03:14 (18 years ago)
Author:
mattausch
Message:

added kd pvs support, changed way of counting pvs

File:
1 edited

Legend:

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

    r1112 r1141  
    17051705  ViewCellContainer &viewcells = mViewCellsManager->GetViewCells(); 
    17061706  int maxPvs = -1; 
    1707   for (i=0; i < viewcells.size(); i++) { 
     1707  for (i=0; i < viewcells.size(); i++)  
     1708  { 
    17081709        ViewCell *vc = viewcells[i]; 
    1709         int p = vc->GetPvs().GetSize(); 
     1710        const int p = vc->GetPvs().CountPvs(); 
    17101711        if (p > maxPvs) 
    17111712          maxPvs = p; 
     
    17231724          c = vc->GetColor(); 
    17241725        else { 
    1725           float importance = (float)vc->GetPvs().GetSize() / (float)maxPvs; 
     1726          const float importance = (float)vc->GetPvs().CountPvs() / (float)maxPvs; 
    17261727          c = RgbColor(importance, 1.0f - importance, 0.0f); 
    17271728        } 
Note: See TracChangeset for help on using the changeset viewer.