Ignore:
Timestamp:
11/20/06 18:44:29 (18 years ago)
Author:
mattausch
Message:
 
File:
1 edited

Legend:

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

    r1771 r1772  
    945945                                                   SimpleRayContainer &rays) 
    946946{ 
    947   return strategy.GenerateSamples(number, rays); 
     947        return strategy.GenerateSamples(number, rays); 
    948948} 
    949949 
     
    953953                                                   SimpleRayContainer &rays) 
    954954{ 
    955   const int startSize = (int)rays.size(); 
    956   SamplingStrategy *strategy = GenerateSamplingStrategy(sampleType); 
    957   int castRays = 0; 
    958    
    959   if (!strategy) 
    960         { 
    961           return 0; 
    962         } 
    963    
     955        const int startSize = (int)rays.size(); 
     956        SamplingStrategy *strategy = GenerateSamplingStrategy(sampleType); 
     957        int castRays = 0; 
     958 
     959        if (!strategy) 
     960        { 
     961                return 0; 
     962        } 
     963 
    964964#if 1 
    965   if (!strategy->GenerateSamples(number, rays)) 
    966         return false; 
    967   ++ castRays; 
     965        castRays = strategy->GenerateSamples(number, rays); 
    968966#else 
    969   GenerateRayBundle(rays, newRay, 16, 0); 
    970   castRays += 16; 
     967        GenerateRayBundle(rays, newRay, 16, 0); 
     968        castRays += 16; 
    971969#endif 
    972    
    973   delete strategy; 
    974   return castRays; 
     970 
     971        delete strategy; 
     972        return castRays; 
    975973} 
    976974 
     
    994992        case SamplingStrategy::VIEWCELL_BORDER_BASED_DISTRIBUTION: 
    995993                return new ViewCellBorderBasedDistribution(*this); 
     994        case SamplingStrategy::VIEWSPACE_BORDER_BASED_DISTRIBUTION: 
     995                return new ViewSpaceBorderBasedDistribution(*this); 
     996        case SamplingStrategy::REVERSE_VIEWSPACE_BORDER_BASED_DISTRIBUTION: 
     997                return new ReverseViewSpaceBorderBasedDistribution(*this); 
    996998        //case OBJECTS_INTERIOR_DISTRIBUTION: 
    997999        //      return new ObjectsInteriorDistribution(*this); 
Note: See TracChangeset for help on using the changeset viewer.