Ignore:
Timestamp:
03/20/06 16:55:40 (18 years ago)
Author:
mattausch
Message:
 
File:
1 edited

Legend:

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

    r710 r711  
    10551055        // subdivide further 
    10561056 
     1057        // store maximal and minimal depth 
     1058        if (tData.mDepth > mBspStats.maxDepth) 
     1059        { 
     1060                Debug << "max depth increases to " << tData.mDepth << " at " << mBspStats.Leaves() << " leaves" << endl; 
     1061                mBspStats.maxDepth = tData.mDepth; 
     1062        } 
     1063 
    10571064        mBspStats.nodes += 2; 
    10581065 
    1059          
     1066     
    10601067        BspInterior *interior = new BspInterior(splitPlane); 
    10611068 
     
    10641071#endif 
    10651072 
     1073 
    10661074        //-- create front and back leaf 
    10671075 
     
    10871095        interior->mTimeStamp = mTimeStamp ++; 
    10881096         
     1097 
    10891098        //DEL_PTR(leaf); 
    10901099        return interior; 
     
    11421151        // creates a sorted split candidates array 
    11431152        if (mSplitCandidates->capacity() > 500000 && 
    1144                 requestedSize < (int)(mSplitCandidates->capacity()  / 10) ) 
     1153                requestedSize < (int)(mSplitCandidates->capacity() / 10) ) 
    11451154        { 
    11461155        delete mSplitCandidates; 
     
    18511860                pBack = pOverall - pFront; 
    18521861                 
    1853                 // clamp because of possible precision issues 
     1862                // precision issues possible for unbalanced split => don't take this split! 
    18541863                if (1 &&  
    18551864                        (!splitSuccessFull || (pFront <= 0) || (pBack <= 0) ||  
     
    18571866                { 
    18581867                        Debug << "error f: " << pFront << " b: " << pBack << endl; 
    1859                         return 999; 
     1868                        return 99999.9f; 
    18601869                } 
    18611870        } 
     
    21672176        BspLeaf *leaf = dynamic_cast<BspLeaf *>(data.mNode); 
    21682177 
    2169         // store maximal and minimal depth 
    2170         if (data.mDepth > mBspStats.maxDepth) 
    2171                 mBspStats.maxDepth = data.mDepth; 
    21722178 
    21732179        if (data.mPvs > mBspStats.maxPvs) 
     2180        { 
    21742181                mBspStats.maxPvs = data.mPvs; 
    2175          
     2182        } 
     2183 
    21762184        mBspStats.pvs += data.mPvs; 
    21772185 
    21782186        if (data.mDepth < mBspStats.minDepth) 
     2187        { 
    21792188                mBspStats.minDepth = data.mDepth; 
     2189        } 
    21802190         
    21812191        if (data.mDepth >= mTermMaxDepth) 
     2192        { 
    21822193                ++ mBspStats.maxDepthNodes; 
     2194        } 
    21832195 
    21842196        // accumulate rays to compute rays /  leaf 
Note: See TracChangeset for help on using the changeset viewer.