Ignore:
Timestamp:
03/31/06 20:31:55 (18 years ago)
Author:
mattausch
Message:
 
Location:
GTP/trunk/Lib/Vis/Preprocessing/src
Files:
3 edited

Legend:

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

    r712 r722  
    12791279                                        "8000000"); 
    12801280 
     1281        RegisterOption("ViewCells.Evaluation.samplingType", 
     1282                        optString, 
     1283                        "view_cells_evaluation_sampling_type=", 
     1284                        "box"); 
     1285 
    12811286        RegisterOption("ViewCells.Evaluation.samplesPerPass", 
    12821287                                        optInt, 
  • GTP/trunk/Lib/Vis/Preprocessing/src/ViewCellsManager.cpp

    r720 r722  
    9797         
    9898        if (strcmp(buf, "box") == 0) 
     99        { 
    99100                mSamplingType = Preprocessor::SPATIAL_BOX_BASED_DISTRIBUTION; 
     101        } 
    100102        else if (strcmp(buf, "directional") == 0) 
     103        { 
    101104                mSamplingType = Preprocessor::DIRECTION_BASED_DISTRIBUTION; 
     105        } 
    102106        else  
    103107        { 
     
    106110        } 
    107111 
    108         environment->GetStringValue("ViewCells.Visualization.colorCode", buf); 
     112        environment->GetStringValue("ViewCells.Evaluation.samplingType", buf); 
     113         
     114        if (strcmp(buf, "box") == 0) 
     115        { 
     116                mEvaluationSamplingType = Preprocessor::SPATIAL_BOX_BASED_DISTRIBUTION; 
     117        } 
     118        else if (strcmp(buf, "directional") == 0) 
     119        { 
     120                mEvaluationSamplingType = Preprocessor::DIRECTION_BASED_DISTRIBUTION; 
     121        } 
     122        else  
     123        { 
     124                Debug << "error! wrong sampling type" << endl; 
     125                exit(0); 
     126        } 
     127 
     128    environment->GetStringValue("ViewCells.Visualization.colorCode", buf); 
    109129 
    110130        if (strcmp(buf, "PVS") == 0) 
     
    492512        //VssRayContainer outRays; 
    493513        // should directional sampling be used? 
    494         bool dirSamples = mSamplingType == Preprocessor::DIRECTION_BASED_DISTRIBUTION; 
     514        bool dirSamples = (mEvaluationSamplingType == Preprocessor::DIRECTION_BASED_DISTRIBUTION); 
    495515 
    496516        cout << "Evaluating view cell partition" << endl; 
     
    521541                VssRayContainer evaluationSamples; 
    522542 
    523                 const int samplingType = mSamplingType; 
     543                const int samplingType = mEvaluationSamplingType; 
    524544                /*      dirSamples ?  
    525545                                                Preprocessor::DIRECTION_BASED_DISTRIBUTION : 
  • GTP/trunk/Lib/Vis/Preprocessing/src/ViewCellsManager.h

    r720 r722  
    549549 
    550550        int mSamplingType; 
     551        int mEvaluationSamplingType; 
    551552        int mNumActiveViewCells; 
    552553        bool mCompressViewCells; 
Note: See TracChangeset for help on using the changeset viewer.