Ignore:
Timestamp:
09/21/06 12:16:04 (18 years ago)
Author:
mattausch
Message:
 
File:
1 edited

Legend:

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

    r1421 r1444  
    6262{ 
    6363        MailablePvsData *vdata = obj->mViewCellPvs.Find(vc); 
    64 //return false; 
     64 
    6565        if (vdata) 
    6666        { 
     
    128128 
    129129        app << "#N_RAYS (number of rays / leaf)\n" << AvgRays() << endl; 
    130         //app << "#N_PVS: " << pvs << endl; 
    131  
    132         //app << "#N_MAXOBJECTREFS  ( Max number of object refs / leaf )\n" << maxObjectRefs << "\n"; 
     130         
    133131 
    134132        app << "========== END OF VspTree statistics ==========\n"; 
     
    202200        mTreeValid = v; 
    203201} 
     202 
    204203 
    205204 
     
    372371mHierarchyManager(NULL) 
    373372{ 
     373        mLocalSubdivisionCandidates = new vector<SortableEntry>; 
     374 
    374375        bool randomize = false; 
    375376        Environment::GetSingleton()->GetBoolValue("VspTree.Construction.randomize", randomize); 
     
    377378                Randomize(); // initialise random generator for heuristics 
    378379 
     380        char subdivisionStatsLog[100]; 
     381        Environment::GetSingleton()->GetStringValue("VspTree.subdivisionStats", subdivisionStatsLog); 
     382        mSubdivisionStats.open(subdivisionStatsLog); 
     383 
     384        ///////////// 
    379385        //-- termination criteria for autopartition 
     386 
    380387        Environment::GetSingleton()->GetIntValue("VspTree.Termination.maxDepth", mTermMaxDepth); 
    381388        Environment::GetSingleton()->GetIntValue("VspTree.Termination.minPvs", mTermMinPvs); 
     
    386393        Environment::GetSingleton()->GetIntValue("VspTree.Termination.missTolerance", mTermMissTolerance); 
    387394        Environment::GetSingleton()->GetIntValue("VspTree.Termination.maxViewCells", mMaxViewCells); 
    388  
    389         //-- max cost ratio for early tree termination 
     395        // max cost ratio for early tree termination 
    390396        Environment::GetSingleton()->GetFloatValue("VspTree.Termination.maxCostRatio", mTermMaxCostRatio); 
    391397 
     
    393399        Environment::GetSingleton()->GetIntValue("VspTree.Termination.globalCostMissTolerance", mTermGlobalCostMissTolerance); 
    394400 
     401        Environment::GetSingleton()->GetFloatValue("VspTree.maxStaticMemory", mMaxMemory); 
     402 
     403 
     404        ////////////// 
    395405        //-- factors for bsp tree split plane heuristics 
     406 
    396407        Environment::GetSingleton()->GetFloatValue("VspTree.Termination.ct_div_ci", mCtDivCi); 
    397  
    398         //-- partition criteria 
    399408        Environment::GetSingleton()->GetFloatValue("VspTree.Construction.epsilon", mEpsilon); 
     409        Environment::GetSingleton()->GetFloatValue("VspTree.Construction.minBand", mMinBand); 
     410        Environment::GetSingleton()->GetFloatValue("VspTree.Construction.maxBand", mMaxBand); 
     411        Environment::GetSingleton()->GetIntValue("VspTree.maxTests", mMaxTests); 
     412 
    400413        Environment::GetSingleton()->GetFloatValue("VspTree.Construction.renderCostDecreaseWeight", mRenderCostDecreaseWeight); 
    401  
     414         
    402415        // if only the driving axis is used for axis aligned split 
    403416        Environment::GetSingleton()->GetBoolValue("VspTree.splitUseOnlyDrivingAxis", mOnlyDrivingAxis); 
    404          
    405         Environment::GetSingleton()->GetIntValue("VspTree.maxTests", mMaxTests); 
    406         Environment::GetSingleton()->GetFloatValue("VspTree.maxStaticMemory", mMaxMemory); 
    407  
    408417        Environment::GetSingleton()->GetBoolValue("VspTree.useCostHeuristics", mUseCostHeuristics); 
    409418        Environment::GetSingleton()->GetBoolValue("VspTree.simulateOctree", mCirculatingAxis); 
    410          
    411         //Environment::GetSingleton()->GetBoolValue("VspTree.useKdPvsForHeuristics", mUseKdPvsForHeuristics); 
    412  
    413         char subdivisionStatsLog[100]; 
    414         Environment::GetSingleton()->GetStringValue("VspTree.subdivisionStats", subdivisionStatsLog); 
    415         mSubdivisionStats.open(subdivisionStatsLog); 
    416  
    417         Environment::GetSingleton()->GetFloatValue("VspTree.Construction.minBand", mMinBand); 
    418         Environment::GetSingleton()->GetFloatValue("VspTree.Construction.maxBand", mMaxBand); 
    419          
    420  
     419 
     420 
     421        ////////////// 
    421422        //-- debug output 
    422423 
     
    445446        Debug << "maxband: " << mMaxBand << endl; 
    446447 
    447         mLocalSubdivisionCandidates = new vector<SortableEntry>; 
    448  
    449448        Debug << endl; 
    450449} 
     
    565564                ); 
    566565 
    567         if (0 && terminationCriteriaMet) 
     566        if (1 && terminationCriteriaMet) 
    568567        { 
    569568                Debug << "vsp global termination criteria met:" << endl; 
Note: See TracChangeset for help on using the changeset viewer.