Ignore:
Timestamp:
10/18/05 02:06:28 (19 years ago)
Author:
mattausch
Message:

reprogrammed splitplane evaluation. updated default.env

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/VUT/GtpVisibilityPreprocessor/src/SamplingPreprocessor.cpp

    r333 r335  
    2626 
    2727void 
    28 SamplingPreprocessor::SetupRay(Ray &ray, const Vector3 &point, const Vector3 &direction) 
     28SamplingPreprocessor::SetupRay(Ray &ray,  
     29                                                           const Vector3 &point,  
     30                                                           const Vector3 &direction, 
     31                                                           const int type) 
    2932{ 
    3033  ray.intersections.clear(); 
     
    3437 
    3538  //  cout<<point<<" "<<direction<<endl; 
    36   ray.Init(point, direction, Ray::LOCAL_RAY); 
     39  ray.Init(point, direction, type); 
    3740} 
    3841 
     
    259262                Vector3 target = t*poly.mVertices[edge] + (1.0f-t)*poly.mVertices[(edge + 1)% 
    260263                                                                                                                                                                                                                                                                                 poly.mVertices.size()]; 
    261                 SetupRay(ray, point, target - point); 
     264                SetupRay(ray, point, target - point, Ray::LOCAL_RAY); 
    262265                if (!mesh->CastRay(ray, mi)) { 
    263266                        // the rays which intersect the mesh have been discarded since they are not tangent 
     
    395398                                         
    396399                                        // construct a ray 
    397                                         SetupRay(ray, point, direction); 
     400                                        SetupRay(ray, point, direction, Ray::LOCAL_RAY); 
    398401                                         
    399402                                        sampleContributions = CastRay(object, ray); 
Note: See TracChangeset for help on using the changeset viewer.