Ignore:
Timestamp:
07/03/06 02:03:59 (18 years ago)
Author:
mattausch
Message:
 
File:
1 edited

Legend:

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

    r1047 r1072  
    12301230                        ++ contributingSamples; 
    12311231                 
     1232                // note: vss rays are never deleted 
    12321233                if (0) leaf->mVssRays.push_back(new VssRay(*ray)); 
    12331234        } 
     
    16101611                                        bestAxis = axis; 
    16111612                                } 
    1612                                 else if (nCostRatio[axis] < nCostRatio[bestAxis]) 
     1613                                /*else if (nCostRatio[axis] < nCostRatio[bestAxis]) 
     1614                                { 
    16131615                                        Debug << "taking split along longest axis (" << bestAxis << ") instead of  (" << axis << ")" << endl; 
    1614                                  
     1616                                }*/ 
     1617 
    16151618                        } 
    16161619                        else 
     
    16291632 
    16301633        //-- assign values 
     1634 
    16311635        axis = bestAxis; 
    16321636        pFront = nProbFront[bestAxis]; 
     
    16461650 
    16471651        //Debug << "best axis: " << bestAxis << " pos " << nPosition[bestAxis] << endl; 
    1648         //Debug << "!!!!!!!!!!!!!!" << endl; 
     1652 
    16491653        return nCostRatio[bestAxis]; 
    16501654} 
     
    16591663{ 
    16601664        // HACK matt: subdivide regularily to certain depth 
    1661         if (data.mDepth < 0)     
    1662         { 
    1663                 cout << "d: " << data.mDepth << endl; 
     1665        if (data.mDepth < 0)    // question matt: why depth < 0 ? 
     1666        { 
     1667                cout << "depth: " << data.mDepth << endl; 
     1668 
    16641669                // return axis aligned split 
    16651670                AxisAlignedBox3 box; 
     
    16751680                bestPlane = Plane3(norm, position); 
    16761681                splitAxis = axis; 
     1682 
    16771683                return true; 
    16781684        } 
     
    25092515 
    25102516 
    2511 void VspBspTree::CollectViewCells(ViewCellContainer &viewCells, bool onlyValid) const 
     2517void VspBspTree::CollectViewCells(ViewCellContainer &viewCells,  
     2518                                                                  bool onlyValid) const 
    25122519{ 
    25132520        ViewCell::NewMail(); 
Note: See TracChangeset for help on using the changeset viewer.