Changeset 656


Ignore:
Timestamp:
02/20/06 02:13:08 (18 years ago)
Author:
mattausch
Message:
 
Location:
GTP/trunk/Lib/Vis
Files:
5 added
5 edited

Legend:

Unmodified
Added
Removed
  • GTP/trunk/Lib/Vis/Preprocessing/scripts/default.env

    r655 r656  
    1313#;../data/vienna/vienna-plane.x3d 
    1414#       filename ../data/vienna/viewcells-25-sel.x3d 
    15         filename ../data/atlanta/atlanta2.x3d 
     15#       filename ../data/atlanta/atlanta2.x3d 
    1616#       filename ../data/soda/soda.dat 
    17 #       filename ../data/soda/soda5.dat 
     17        filename ../data/soda/soda5.dat 
    1818} 
    1919 
     
    2525        type vss 
    2626#       type rss 
    27         detectEmptyViewSpace false 
     27        detectEmptyViewSpace true 
    2828} 
    2929 
     
    332332                globalCostMissTolerance 4 
    333333                minGlobalCostRatio      0.0000001 
     334#               minGlobalCostRatio      0.0001 
    334335                maxViewCells            40000 
    335                 useSplitCostQueue       true 
     336         
    336337 
    337338                # used for pvs criterium 
     
    344345        } 
    345346         
     347        useSplitCostQueue       false 
     348 
    346349        useCostHeuristics true 
    347350        splitUseOnlyDrivingAxis false 
  • GTP/trunk/Lib/Vis/Preprocessing/src/Preprocessor.cpp

    r599 r656  
    305305 
    306306#if USE_ASCII 
    307         ifstream samplesIn(fileName, ios::binary); 
     307        ifstream samplesIn(fileName); 
    308308        if (!samplesIn.is_open()) 
    309309                return false; 
  • GTP/trunk/Lib/Vis/Preprocessing/src/ViewCellBsp.h

    r648 r656  
    168168        /// accumulated number of rays refs 
    169169        int accumRays; 
     170        int pvs; 
    170171 
    171172        // Constructor 
     
    193194                polys = 0; 
    194195                accumDepth = 0; 
    195          
     196        pvs = 0; 
    196197                maxDepthNodes = 0; 
    197198                minPvsNodes = 0; 
  • GTP/trunk/Lib/Vis/Preprocessing/src/VspBspTree.cpp

    r655 r656  
    415415 
    416416// TODO: return memory usage in MB 
    417 float VspBspTree::GetMemUsage(/*const VspBspTraversalQueue &tstack*/) const 
    418 { 
    419         return 
    420                 (sizeof(VspBspTree) + 
    421                  (float)mBspStats.Leaves() * sizeof(BspLeaf) +  
    422                  // the nodes in the stack is the minimal additional number of leaves 
    423                  //(float)tstack.size() * sizeof(BspLeaf) + 
    424                  mBspStats.Interior() * sizeof(BspInterior) + 
    425                  mBspStats.accumRays * sizeof(RayInfo)) / (1024.0f * 1024.0f); 
     417float VspBspTree::GetMemUsage() const 
     418{ 
     419        return (float) 
     420                 (sizeof(VspBspTree) +  
     421                  mBspStats.Leaves() * sizeof(BspLeaf) +  
     422                  mCreatedViewCells * sizeof(BspViewCell) + 
     423                  mBspStats.pvs * sizeof(ObjectPvsData) + 
     424                  mBspStats.Interior() * sizeof(BspInterior) + 
     425                  mBspStats.accumRays * sizeof(RayInfo)) / (1024.0f * 1024.0f); 
    426426} 
    427427 
     
    19941994                mBspStats.maxPvs = data.mPvs; 
    19951995         
     1996        mBspStats.pvs += data.mPvs; 
     1997 
    19961998        if (data.mDepth < mBspStats.minDepth) 
    19971999                mBspStats.minDepth = data.mDepth; 
    1998  
     2000         
    19992001        if (data.mDepth >= mTermMaxDepth) 
    20002002                ++ mBspStats.maxDepthNodes; 
     
    20192021 
    20202022        ++ mCreatedViewCells; 
     2023 
    20212024#ifdef _DEBUG 
    20222025        Debug << "BSP stats: " 
Note: See TracChangeset for help on using the changeset viewer.