Ignore:
Timestamp:
12/12/06 17:25:53 (18 years ago)
Author:
bittner
Message:

mixture distribution initial coding

File:
1 edited

Legend:

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

    r1771 r1883  
    1515#include "Intersectable.h" 
    1616#include "RayCaster.h" 
     17#include "SamplingStrategy.h" 
    1718 
    1819 
     
    422423                                const Vector3 direction = GetDirection(viewpoint, &mViewCellsManager->GetViewSpaceBox()); 
    423424 
    424                                 const SimpleRay sray(viewpoint, direction); 
    425                                 sampleContributions = mRayCaster->CastRay(sray, mVssRays, mViewCellsManager->GetViewSpaceBox(), true); 
     425                                const SimpleRay sray(viewpoint, direction, 
     426                                                                         SamplingStrategy::DIRECTION_BOX_BASED_DISTRIBUTION, 
     427                                                                         1.0f); 
     428                                sampleContributions = mRayCaster->CastRay(sray, 
     429                                                                                                                  mVssRays, 
     430                                                                                                                  mViewCellsManager->GetViewSpaceBox(), 
     431                                                                                                                  true); 
    426432 
    427433                                if (sampleContributions) { 
     
    545551                                mViewCellsManager->GetViewPoint(viewpoint); 
    546552                                Vector3 direction = GetDirection(viewpoint, NULL); 
    547                                 rays.push_back(SimpleRay(viewpoint, direction)); 
     553                                rays.push_back(SimpleRay(viewpoint, direction, 
     554                                                                                 SamplingStrategy::DIRECTION_BOX_BASED_DISTRIBUTION, 
     555                                                                                 1.0f) 
     556                                                           ); 
    548557                        } 
    549558                } else { 
Note: See TracChangeset for help on using the changeset viewer.