Ignore:
Timestamp:
01/15/07 16:28:59 (17 years ago)
Author:
mattausch
Message:
 
File:
1 edited

Legend:

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

    r1977 r1981  
    445445        const float offset = 0.5f; 
    446446        const Vector3 newOrigin = newPoint - newDir * offset; 
     447 
     448        static Ray ray(newOrigin, newDir, Ray::LOCAL_RAY); 
     449        ray.Precompute(); 
     450 
     451        // check if ray intersects view cell 
     452        if (mPerViewCell && !mCurrentViewCell->CastRay(ray)) 
     453                return NULL; 
    447454 
    448455        const SimpleRay simpleRay(newOrigin, newDir, SamplingStrategy::GVS, 1.0f); 
Note: See TracChangeset for help on using the changeset viewer.