Ignore:
Timestamp:
10/03/06 22:03:58 (18 years ago)
Author:
mattausch
Message:

fixed bug with view space box

File:
1 edited

Legend:

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

    r1551 r1563  
    892892        int nObjectsLeft = 0; 
    893893        const int nTotalObjects = (int)tData.mNode->mObjects.size(); 
    894         const float viewSpaceVol = mHierarchyManager->GetViewSpaceBox().GetVolume(); 
     894        const float viewSpaceVol = mViewCellsManager->GetViewSpaceBox().GetVolume(); 
    895895 
    896896        SortableEntryContainer::const_iterator backObjectsStart = mSubdivisionCandidates->begin(); 
     
    12941294                const float area = box.SurfaceArea(); 
    12951295 
    1296                 return (float)objects.size() * area / mHierarchyManager->GetViewSpaceBox().SurfaceArea(); 
     1296                return (float)objects.size() * area / mViewCellsManager->GetViewSpaceBox().SurfaceArea(); 
    12971297        } 
    12981298        else 
     
    13001300                //-- render cost heuristics 
    13011301 
    1302                 const float viewSpaceVol = mHierarchyManager->GetViewSpaceBox().GetVolume(); 
     1302                const float viewSpaceVol = mViewCellsManager->GetViewSpaceBox().GetVolume(); 
    13031303                // probability that view point lies in a view cell which sees this node 
    13041304                const float p = EvalViewCellsVolume(objects) / viewSpaceVol;     
     
    17121712        bvhLeaf->SetSubdivisionCandidate(oSubdivisionCandidate); 
    17131713 
    1714         const float viewSpaceVol = mHierarchyManager->GetViewSpaceBox().GetVolume(); 
     1714        const float viewSpaceVol = mViewCellsManager->GetViewSpaceBox().GetVolume(); 
    17151715        mTotalCost = (float)objects.size() * prop / viewSpaceVol; 
    17161716 
     
    18221822        bvhLeaf->SetSubdivisionCandidate(oSubdivisionCandidate); 
    18231823 
    1824         const float viewSpaceVol = mHierarchyManager->GetViewSpaceBox().GetVolume(); 
     1824        const float viewSpaceVol = mViewCellsManager->GetViewSpaceBox().GetVolume(); 
    18251825        mTotalCost = (float)objects.size() * prop / viewSpaceVol; 
    18261826 
Note: See TracChangeset for help on using the changeset viewer.