Ignore:
Timestamp:
11/28/06 19:46:36 (18 years ago)
Author:
bittner
Message:

global lines support

File:
1 edited

Legend:

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

    r1785 r1824  
    7373  case SamplingStrategy::RSS_BASED_DISTRIBUTION: 
    7474  case SamplingStrategy::RSS_SILHOUETTE_BASED_DISTRIBUTION: 
    75         if (mRssTree) { 
    76           result = GenerateImportanceRays(mRssTree, number, rays); 
    77         } 
    78         break; 
    79          
     75                if (mRssTree) { 
     76                        result = GenerateImportanceRays(mRssTree, number, rays); 
     77                } 
     78                break; 
     79                 
    8080  default: 
    81         result = Preprocessor::GenerateRays(number, sampleType, rays); 
     81                result = Preprocessor::GenerateRays(number, sampleType, rays); 
    8282  } 
    8383 
     
    465465 
    466466  if (mUseRssTree) 
    467         mDistributions.push_back(new RssBasedDistribution(*this)); 
    468  
    469   //  mDistributions.push_back(new SpatialBoxBasedDistribution(*this)); 
    470   //  mDistributions.push_back(new DirectionBasedDistribution(*this)); 
    471   mDistributions.push_back(new ObjectDirectionBasedDistribution(*this)); 
    472   //  mDistributions.push_back(new ReverseObjectBasedDistribution(*this)); 
    473   mDistributions.push_back(new ObjectBasedDistribution(*this)); 
    474   mDistributions.push_back(new ReverseViewSpaceBorderBasedDistribution(*this)); 
     467                mDistributions.push_back(new RssBasedDistribution(*this)); 
     468 
     469 
     470        if (1) { 
     471                //  mDistributions.push_back(new SpatialBoxBasedDistribution(*this)); 
     472                //  mDistributions.push_back(new DirectionBasedDistribution(*this)); 
     473                mDistributions.push_back(new ObjectDirectionBasedDistribution(*this)); 
     474                //  mDistributions.push_back(new ReverseObjectBasedDistribution(*this)); 
     475                mDistributions.push_back(new ObjectBasedDistribution(*this)); 
     476                mDistributions.push_back(new ReverseViewSpaceBorderBasedDistribution(*this)); 
     477        } else { 
     478                mDistributions.push_back(new GlobalLinesDistribution(*this)); 
     479        } 
    475480   
    476481  if (mLoadInitialSamples) { 
     
    495500                if (mDistributions[i]->mType != SamplingStrategy::RSS_BASED_DISTRIBUTION) 
    496501                  GenerateRays(mInitialSamples/count, 
    497                                            mDistributions[i]->mType, rays); 
     502                                                                         mDistributions[i]->mType, 
     503                                                                         rays); 
    498504 
    499505        } else { 
     
    582588   
    583589  rssPass++; 
    584    
     590 
     591        //      mDistributions.resize(1); 
     592 
    585593  mRssTree = new RssTree; 
    586594  mRssTree->SetPass(mPass); 
Note: See TracChangeset for help on using the changeset viewer.