Ignore:
Timestamp:
02/28/07 15:33:04 (17 years ago)
Author:
bittner
Message:

merge

File:
1 edited

Legend:

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

    r2116 r2172  
    11#include "VssRay.h" 
    22#include "AxisAlignedBox3.h" 
    3 #include "Ray.h" 
    4  
     3#include "SamplingStrategy.h" 
    54 
    65namespace GtpVisibilityPreprocessor { 
     
    340339VssRayContainer::SelectRays(const int number, 
    341340                                                        VssRayContainer &selected, 
    342                                                         const bool copy) const 
     341                                                        const bool copy 
     342                                                        ) const 
    343343{ 
    344344  float p = number/(float)size(); 
     
    346346   
    347347  for (; it != end(); it++) 
    348         if (Random(1.0f) < p) { 
     348        // temporarily only take mutation rays! 
     349        if ((*it)->mDistribution == SamplingStrategy::MUTATION_BASED_DISTRIBUTION && Random(1.0f) < p) { 
    349350          if (!copy) 
    350351                selected.push_back(*it); 
Note: See TracChangeset for help on using the changeset viewer.