Ignore:
Timestamp:
09/18/06 18:57:34 (18 years ago)
Author:
mattausch
Message:
 
File:
1 edited

Legend:

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

    r1379 r1415  
    9494        app << "#N_LEAVES ( Number of leaves )\n" << Leaves() << "\n"; 
    9595 
    96         app << "#AXIS_ALIGNED_SPLITS (number of axis aligned splits)\n" << splits[0] + splits[1] + splits[2] << endl; 
    97  
    9896        app << "#N_SPLITS ( Number of splits in axes x y z)\n"; 
    9997 
    10098        for (int i = 0; i < 3; ++ i) 
    10199                app << splits[i] << " "; 
     100 
    102101        app << endl; 
    103102 
     
    529528                || (data.mPvs <= mTermMinPvs) 
    530529                || (data.mProbability <= mTermMinProbability) 
    531                 || (data.GetAvgRayContribution() > mTermMaxRayContribution) 
     530                //|| (data.GetAvgRayContribution() > mTermMaxRayContribution) 
    532531                || (data.mDepth >= mTermMaxDepth) 
    533532                ); 
    534533 
    535         if (1 && localTerminationCriteriaMet) 
    536         { 
    537                 Debug << "********local termination *********" << endl; 
     534        if (0 && localTerminationCriteriaMet) 
     535        { 
     536                Debug << "local termination criteria met:" << endl; 
    538537                Debug << "rays: " << (int)data.mRays->size() << "  " << mTermMinRays << endl; 
    539538                Debug << "pvs: " << data.mPvs << " " << mTermMinPvs << endl; 
     
    552551                // || mOutOfMemory 
    553552                || (mVspStats.Leaves() >= mMaxViewCells) 
    554         //|| (mGlobalCostMisses >= mTermGlobalCostMissTolerance)  
     553        || (mGlobalCostMisses >= mTermGlobalCostMissTolerance)  
    555554                ); 
    556555 
    557556        if (0 && terminationCriteriaMet) 
    558557        { 
    559                 Debug << "********* terminationCriteriaMet *********" << endl; 
     558                Debug << "globlal termination criteria met:" << endl; 
    560559                Debug << "cost misses: " << mGlobalCostMisses << " " << mTermGlobalCostMissTolerance << endl; 
    561560                Debug << "leaves: " << mVspStats.Leaves() << " " <<  mMaxViewCells << endl; 
     
    768767        VspLeaf *leaf = dynamic_cast<VspLeaf *>(tData.mNode); 
    769768         
    770         /////////////////////////////////////////////////////////////////// 
    771         //-- the front and back traversal data is filled with the new values 
     769        //////////////////////////////////////////////////////// 
     770        //-- the front and back traversal data are filled with the new values 
    772771 
    773772        frontData.mDepth = tData.mDepth + 1; 
     
    807806        // two more leaves 
    808807        mVspStats.nodes += 2; 
    809  
     808        /// and a new split 
     809        ++ mVspStats.splits[splitPlane.mAxis]; 
    810810 
    811811    /////////////////////////////////////////// 
Note: See TracChangeset for help on using the changeset viewer.