Ignore:
Timestamp:
01/03/08 15:53:44 (17 years ago)
Author:
bittner
Message:

big merge: preparation for havran ray caster, check if everything works

File:
1 edited

Legend:

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

    r2560 r2575  
    525525        //TestEvaluation(sc); 
    526526 
     527#ifdef PERFTIMER    
    527528        // fill view cells cache 
    528529        mNodeTimer.Entry(); 
     530#endif   
    529531 
    530532        const BvhTraversalData &tData = sc.mParentData; 
     
    634636        UpdateViewCells(sc); 
    635637 
     638#ifdef PERFTIMER   
    636639        mNodeTimer.Exit(); 
    637  
     640#endif 
     641         
    638642        // return the new interior node 
    639643        return node; 
     
    647651                                                                ) 
    648652{ 
     653#ifdef PERFTIMER   
    649654        mSubdivTimer.Entry(); 
    650  
     655#endif 
     656         
    651657        BvhSubdivisionCandidate *sc =  
    652658                static_cast<BvhSubdivisionCandidate *>(splitCandidate); 
     
    718724        } 
    719725         
     726#ifdef PERFTIMER   
    720727        mSubdivTimer.Exit(); 
    721  
     728#endif 
     729         
    722730        return currentNode; 
    723731} 
     
    780788                                                                                   const bool preprocessViewCells) 
    781789{ 
    782         mPlaneTimer.Entry(); 
     790#ifdef PERFTIMER   
     791  mPlaneTimer.Entry(); 
     792#endif 
    783793 
    784794        const BvhTraversalData &tData = splitCandidate.mParentData; 
     
    824834        } 
    825835 
     836#ifdef PERFTIMER   
    826837        mPlaneTimer.Exit(); 
    827  
     838#endif 
    828839 
    829840        /////////////////// 
    830841 
     842#ifdef PERFTIMER   
    831843        mEvalTimer.Entry(); 
    832  
     844#endif 
     845         
    833846        // mark view cells according to what part of the split they see 
    834847        // and compute volume 
     
    984997#endif 
    985998 
     999#ifdef PERFTIMER   
    9861000        mEvalTimer.Exit(); 
     1001#endif 
    9871002} 
    9881003 
     
    16761691                                                                                                        const int axis)                                                                                  
    16771692{ 
     1693#ifdef PERFTIMER   
    16781694        mSortTimer.Entry(); 
    1679          
     1695#endif   
    16801696        //-- insert object queries 
    16811697        ObjectContainer *objects = mUseGlobalSorting ?  
     
    16841700        CreateLocalSubdivisionCandidates(*objects, &mSubdivisionCandidates, !mUseGlobalSorting, axis); 
    16851701         
     1702#ifdef PERFTIMER   
    16861703        mSortTimer.Exit(); 
     1704#endif 
    16871705} 
    16881706 
     
    18401858                                                                                 bool useVisibilityBasedHeuristics) 
    18411859{ 
     1860#ifdef PERFTIMER   
    18421861        mSplitTimer.Entry(); 
    1843  
     1862#endif 
     1863         
    18441864        if (mIsInitialSubdivision) 
    18451865        { 
     
    19251945        backObjects = nBackObjects[bestAxis]; 
    19261946 
     1947#ifdef PERFTIMER   
    19271948        mSplitTimer.Exit(); 
    1928  
     1949#endif 
     1950         
    19291951        //cout << "val: " << nCostRatio[bestAxis] << " axis: " << bestAxis << endl; 
    19301952        return nCostRatio[bestAxis]; 
     
    22762298        //-- use view cells cache 
    22772299 
     2300#ifdef PERFTIMER   
    22782301        mCollectTimer.Entry(); 
    2279  
     2302#endif 
     2303         
    22802304        ViewCellContainer *objViewCells = obj->GetOrCreateViewCells(); 
    22812305 
     
    23082332        } 
    23092333 
     2334#ifdef PERFTIMER   
    23102335        mCollectTimer.Exit(); 
    2311  
     2336#endif 
    23122337        return (int)objViewCells->size(); 
    23132338} 
     
    23202345                                                                                  const bool onlyUnmailedRays) 
    23212346{ 
     2347#ifdef PERFTIMER   
    23222348        mCollectTimer.Entry(); 
     2349#endif 
    23232350        VssRayContainer::const_iterator rit, rit_end = obj->GetOrCreateRays()->end(); 
    23242351 
     
    23622389        } 
    23632390 
     2391#ifdef PERFTIMER   
    23642392        mCollectTimer.Exit(); 
     2393#endif 
    23652394        return numRays; 
    23662395} 
     
    24362465                                                                  const bool onlyUnmailedRays) 
    24372466{ 
     2467#ifdef PERFTIMER   
    24382468        mCollectTimer.Entry(); 
     2469#endif 
    24392470        VssRayContainer::const_iterator rit, rit_end = obj->GetOrCreateRays()->end(); 
    24402471 
     
    24782509        } 
    24792510 
     2511#ifdef PERFTIMER   
    24802512        mCollectTimer.Exit(); 
     2513#endif 
    24812514        return numRays; 
    24822515} 
Note: See TracChangeset for help on using the changeset viewer.