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/ViewCell.cpp

    r2569 r2575  
    33#include <stack> 
    44 
    5  
     5#include "Material.h" 
    66#include "ViewCell.h" 
    77#include "Mesh.h" 
     
    1414#include "Exporter.h" 
    1515#include "BvHierarchy.h" 
     16 
     17#ifdef PERFTIMER   
    1618#include "Timer/PerfTimer.h" 
    17  
     19#endif 
    1820 
    1921namespace GtpVisibilityPreprocessor { 
     
    2325#define TYPE_LEAF -3 
    2426 
     27#ifdef PERFTIMER   
    2528static PerfTimer sPvsTimer; 
    2629static PerfTimer sSearchTimer; 
    27  
    28  
     30#endif 
    2931 
    3032static inline bool ilt(Intersectable *obj1, Intersectable *obj2) 
     
    4547 
    4648typedef priority_queue<ViewCell *, vector<ViewCell *>,  
    47                                            myless<vector<ViewCell *>::value_type> > TraversalQueue; 
    48  
    49 int ViewCell::sMailId = 10000;//2147483647; 
    50 int ViewCell::sReservedMailboxes = 1; 
     49                       myless<vector<ViewCell *>::value_type> > TraversalQueue; 
     50 
     51int Intersectable::sMailId = 10000;//2147483647; 
     52int Intersectable::sReservedMailboxes = 1; 
    5153 
    5254float MergeCandidate::sRenderCostWeight = 0; 
     
    5557// pvs penalty can be different from pvs size 
    5658inline static float EvalPvsPenalty(const float pvs,  
    57                                                                    const float lower,  
    58                                                                    const float upper) 
     59                                   const float lower,  
     60                                   const float upper) 
    5961{ 
    6062        // clamp to minmax values 
     
    26862688        Intersectable *obj; 
    26872689 
     2690#ifdef PERFTIMER   
    26882691        sPvsTimer.Entry(); 
    2689  
     2692#endif 
    26902693        int pvsSize; 
    26912694        stream.read(reinterpret_cast<char *>(&pvsSize), sizeof(int)); 
     
    27032706        } 
    27042707 
     2708#ifdef PERFTIMER 
    27052709        sPvsTimer.Exit(); 
     2710#endif   
    27062711 
    27072712        return leaf; 
     
    27382743        queue<ViewCell *> tStack; 
    27392744 
     2745#ifdef PERFTIMER   
    27402746        sPvsTimer.Start(); 
    2741  
     2747#endif 
     2748         
    27422749        mPvsIds = new int[pvsObjects.size()]; 
    27432750 
     
    27742781        } 
    27752782 
     2783#ifdef PERFTIMER   
    27762784        Debug << "needed " << sPvsTimer.TotalTime() << " secs for pvs loading" << endl; 
    2777  
     2785#endif 
     2786         
    27782787        delete mPvsIds; 
    27792788 
Note: See TracChangeset for help on using the changeset viewer.