Ignore:
Timestamp:
08/28/06 18:42:33 (18 years ago)
Author:
mattausch
Message:
 
File:
1 edited

Legend:

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

    r1288 r1291  
    2525 
    2626static float debugVol = 0; 
     27 
    2728int BvhNode::sMailId = 2147483647; 
     29int BvhNode::sReservedMailboxes = 1; 
     30 
     31 
    2832BvHierarchy *BvHierarchy::BvhSubdivisionCandidate::sBvHierarchy = NULL; 
     33 
    2934 
    3035 
     
    530535                Intersectable *obj = *oit; 
    531536                AxisAlignedBox3 box = obj->GetBox(); 
     537 
    532538                const float objMid = (box.Max(axis) + box.Min(axis)) * 0.5; 
     539 
    533540                // object mailed => belongs to back objects 
    534541                if (objMid < midPoint)  
     
    599606                const int nObjectsRight = nTotalObjects - nObjectsLeft; 
    600607 
    601                 // view cells that see both child nodes 
    602                 //const float volLeftAndRight = totalVol - volLeft - volRight; 
    603  
    604608                // the heuristics 
    605609            const float sum = volLeft * (float)nObjectsLeft +  
    606610                                                  volRight * (float)nObjectsRight; 
    607                 //                                volLeftAndRight * (float)nTotalObjects; 
    608611 
    609612                if (sum < newRenderCost) 
     
    811814                { 
    812815                        if (mUseCostHeuristics) 
    813                         { 
     816                        {cout << "a"; 
    814817                                //-- partition objects using heuristics 
    815818                                nCostRatio[axis] = 
     
    821824                        } 
    822825                        else 
    823                         { 
     826                        {cout << "b"; 
    824827                                nCostRatio[axis] = 
    825828                                        EvalLocalObjectPartition( 
Note: See TracChangeset for help on using the changeset viewer.