Changeset 412 for trunk


Ignore:
Timestamp:
11/15/05 01:42:05 (19 years ago)
Author:
mattausch
Message:
 
Location:
trunk/VUT/GtpVisibilityPreprocessor/src
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • trunk/VUT/GtpVisibilityPreprocessor/src/SamplingPreprocessor.cpp

    r411 r412  
    741741                        //sampleContributions += mBspTree->GetStat().sampleContributions; 
    742742 
     743                        Debug << mVspKdTree->GetStatistics(); 
     744 
    743745                        // throw away samples because BSP leaves not stored in order  
    744746                        // Need ordered rays for post processing => collect new rays 
     
    784786                        sampleContributions += mBspTree->GetStat().sampleContributions; 
    785787 
    786                         BspTreeStatistics(Debug);        
     788                        BspTreeStatistics(Debug); 
    787789 
    788790                        if (0) Export("vc_bsptree.x3d", false, false, true); 
  • trunk/VUT/GtpVisibilityPreprocessor/src/ViewCellBsp.h

    r411 r412  
    108108  int Interior() const { return nodes / 2; } 
    109109  int Leaves() const { return (nodes / 2) + 1; } 
    110   double AvgDepth() const { return accumDepth / (double)Leaves();}; // TODO: computation wrong 
     110  // TODO: computation wrong 
     111  double AvgDepth() const { return accumDepth / (double)Leaves();};  
    111112   
    112113  void Reset()  
  • trunk/VUT/GtpVisibilityPreprocessor/src/VspKdTree.h

    r411 r412  
    6868   
    6969  // Constructor 
    70   VspKdStatistics() { 
    71     Reset(); 
     70  VspKdStatistics()  
     71  { 
     72          Reset(); 
    7273  } 
    7374 
     
    7677  int Leaves() const { return (nodes/2) + 1; } 
    7778 
    78   void Reset() { 
    79     nodes = 0; 
    80     for (int i=0; i<7; i++) 
    81       splits[i] = 0; 
    82     rays = queryDomains = 0; 
    83     rayRefs = 0; 
    84     maxDepthNodes = 0; 
    85     minPvsNodes = 0; 
    86     minRaysNodes = 0; 
    87     maxRayRefs = 0; 
    88     addedRayRefs = removedRayRefs = 0; 
    89                 initialPvsSize = 0; 
    90                 maxRayContribNodes = 0; 
    91                 minSizeNodes = 0; 
    92   } 
    93  
     79  void Reset()  
     80  { 
     81          nodes = 0; 
     82          for (int i=0; i<7; i++) 
     83                  splits[i] = 0; 
     84          rays = queryDomains = 0; 
     85          rayRefs = 0; 
     86          maxDepthNodes = 0; 
     87          minPvsNodes = 0; 
     88          minRaysNodes = 0;  
     89          maxRayRefs = 0; 
     90          addedRayRefs = removedRayRefs = 0; 
     91          initialPvsSize = 0; 
     92          maxRayContribNodes = 0; 
     93          minSizeNodes = 0; 
     94  } 
    9495   
    9596  void 
     
    558559        // axis aligned bounding box of directions 
    559560        AxisAlignedBox3 dirBBox; 
    560    
     561 
     562        const VspKdStatistics &GetStatistics() const { 
     563                return mStat; 
     564        } 
    561565        ///////////////////////////// 
    562566        // Construction parameters 
     
    616620         
    617621        ///////////////////////////// 
    618         VspKdStatistics stat; 
     622        VspKdStatistics mstat; 
    619623         
    620624        VspKdTree(); 
Note: See TracChangeset for help on using the changeset viewer.