Ignore:
Timestamp:
07/05/06 10:43:45 (18 years ago)
Author:
mattausch
Message:

version for performance testing

File:
1 edited

Legend:

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

    r1074 r1076  
    629629 
    630630 
     631        // first node is kd node, i.e. an axis aligned box 
     632        if (1) 
     633        tData.mIsKdNode = true; 
     634        else 
     635                tData.mIsKdNode = false; 
     636 
    631637        // compute first split candidate 
    632638        VspBspSplitCandidate splitCandidate; 
     
    793799                        // if it was a kd node (i.e., a box) and the split axis is axis aligned, it is still a kd node 
    794800                        tFrontData.mIsKdNode = tBackData.mIsKdNode = (tData.mIsKdNode && (splitAxis < 3)); 
     801                         
    795802                        tFrontData.mAxis = tBackData.mAxis = splitAxis; 
    796803 
     
    15391546        //Debug << "use special axis: " << useSpecialAxis << endl; 
    15401547        //Debug << "axis: " << sAxis << " drivingaxis: " << box.Size().DrivingAxis(); 
    1541  
     1548         
    15421549        for (axis = 0; axis < 3 ; ++ axis) 
    15431550        { 
     
    15601567                                nPosition[axis] = (box.Min()[axis] + box.Max()[axis]) * 0.5f; 
    15611568                                Vector3 normal(0,0,0); normal[axis] = 1.0f; 
    1562  
     1569                                 
    15631570                                // allows faster split because we have axis aligned kd tree boxes 
    15641571                                if (isKdNode) 
     
    22622269 
    22632270 
    2264 void VspBspTree::AddObjToPvs(Intersectable *obj, 
    2265                                                         const int cf, 
    2266                                                         float &frontPvs, 
    2267                                                         float &backPvs, 
    2268                                                         float &totalPvs) const 
     2271inline void VspBspTree::AddObjToPvs(Intersectable *obj, 
     2272                                                                                const int cf, 
     2273                                                                                float &frontPvs, 
     2274                                                                                float &backPvs, 
     2275                                                                                float &totalPvs) const 
    22692276{ 
    22702277        if (!obj) 
    22712278                return; 
    2272  
     2279#if 0 
    22732280        const float renderCost = mViewCellsManager->EvalRenderCost(obj); 
    2274  
     2281#else 
     2282        const int renderCost = 1; 
     2283#endif 
    22752284        // new object 
    22762285        if ((obj->mMailbox != sFrontId) && 
Note: See TracChangeset for help on using the changeset viewer.