Changeset 1179


Ignore:
Timestamp:
08/02/06 17:40:16 (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/ViewCell.cpp

    r1178 r1179  
    251251                                                        float &contribution) 
    252252{ 
    253         Debug << "here9 "<< endl; 
    254         Debug << "here2 " << mVolume << endl; 
    255253        const bool result = mPvs.AddSample(sample, pdf, contribution); 
    256         Debug << "here4" << endl; 
    257         // update pvs size scalar 
    258         //mPvsSize = mPvs.GetSize(); 
    259         mPvsSizeValid = false; // recompute pvs size 
     254         
     255        mPvsSizeValid = false; // have to recompute pvs size 
    260256 
    261257        return result; 
     
    15261522 
    15271523                        ViewCellContainer::const_iterator it, it_end = interior->mChildren.end(); 
    1528 Debug << "\nhere92" << endl; 
     1524 
    15291525                        for (it = interior->mChildren.begin(); it != it_end; ++ it) 
    15301526                        { 
    1531                                 Debug << "here15" << endl; 
    15321527                                ViewCell *vc = *it; 
    15331528 
     
    15431538                        } 
    15441539 
    1545 Debug << "\nhere1005" << endl; 
     1540 
    15461541                        const float costDecr = (parentCost - childCost) / vol; 
    15471542 
     
    17341729        if (vc->mPvsSizeValid) 
    17351730        { 
    1736                 Debug << "here5"<<endl; 
    17371731                return vc->mPvsSize; 
    17381732        } 
    17391733         
    1740         Debug << "here2"<<endl; 
    1741  
    17421734        // if no valid pvs size stored as a scalar =>  
    17431735        // compute current pvs size of interior from it's leaf nodes 
  • GTP/trunk/Lib/Vis/Preprocessing/src/ViewCellsManager.cpp

    r1178 r1179  
    48794879 
    48804880        long startTime; 
    4881 Debug << "here601" << endl; 
     4881 
    48824882        //mHierarchyManager->Construct(constructionRays, objects, &mViewSpaceBox); 
    48834883        mHierarchyManager->Construct2(constructionRays, objects, &mViewSpaceBox); 
     
    57265726} 
    57275727 
    5728  
     5728#if 0 
    57295729void VspOspViewCellsManager::EvalViewCellPartition() 
    57305730{ 
    5731         Debug << "here23" << endl; 
    57325731        int samplesPerPass; 
    57335732        int numSamples; 
     
    57995798        disposeRays(evaluationSamples, NULL); 
    58005799} 
    5801  
     5800#endif 
    58025801////////////////////////////////// 
    58035802/*ViewCellsManager *ViewCellsManagerFactory::Create(const string mName) 
  • GTP/trunk/Lib/Vis/Preprocessing/src/ViewCellsManager.h

    r1178 r1179  
    10111011 
    10121012protected: 
    1013          
     1013#if 0 
    10141014        virtual void EvalViewCellPartition(); 
    1015  
     1015#endif 
    10161016        /** Exports view cell geometry. 
    10171017        */ 
  • GTP/trunk/Lib/Vis/Preprocessing/src/VspOspTree.cpp

    r1178 r1179  
    33453345{ 
    33463346        RayInfoContainer usedRays; 
    3347 int mMaxTests = 5000; // HACK 
    3348 //      if (mMaxTests < (int)tData.mRays->size()) 
    3349 //      { 
    3350 //              GetRayInfoSets(*tData.mRays, mMaxTests, usedRays); 
    3351 //      } 
    3352 //      else 
    3353 //      { 
     3347        int mMaxTests = 500000; // HACK 
     3348 
     3349        if (mMaxTests < (int)tData.mRays->size()) 
     3350        { 
     3351                GetRayInfoSets(*tData.mRays, mMaxTests, usedRays); 
     3352        } 
     3353        else 
     3354        { 
    33543355                usedRays = *tData.mRays; 
    3355 //      } 
     3356        } 
    33563357 
    33573358        // go through the lists, count the number of objects left and right 
     
    46054606        mOspTree.PreprocessRays(sampleRays, rays); 
    46064607 
    4607         // add first candidate for view space partition 
     4608        // create new root 
    46084609        KdLeaf *kdleaf = new KdLeaf(NULL, 0); 
    46094610        kdleaf->mObjects = objects; 
    4610  
    46114611        mOspTree.mRoot = kdleaf; 
    46124612         
     4613        // add first candidate for view space partition 
     4614 
    46134615        // TODO matt: this is something different than pvs size. 
    46144616        const int pvsSize = mOspTree.ComputePvsSize(objects); 
     
    46314633 
    46324634        mOspTree.mTotalCost = (float)objects.size(); 
    4633         Debug << "total cost here553: " << mOspTree.mTotalCost << endl; 
    46344635        mOspTree.EvalSubdivisionStats(*oSplitCandidate); 
    46354636 
Note: See TracChangeset for help on using the changeset viewer.