- Timestamp:
- 10/18/05 02:06:28 (19 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/VUT/GtpVisibilityPreprocessor/src/SamplingPreprocessor.cpp
r333 r335 26 26 27 27 void 28 SamplingPreprocessor::SetupRay(Ray &ray, const Vector3 &point, const Vector3 &direction) 28 SamplingPreprocessor::SetupRay(Ray &ray, 29 const Vector3 &point, 30 const Vector3 &direction, 31 const int type) 29 32 { 30 33 ray.intersections.clear(); … … 34 37 35 38 // cout<<point<<" "<<direction<<endl; 36 ray.Init(point, direction, Ray::LOCAL_RAY);39 ray.Init(point, direction, type); 37 40 } 38 41 … … 259 262 Vector3 target = t*poly.mVertices[edge] + (1.0f-t)*poly.mVertices[(edge + 1)% 260 263 poly.mVertices.size()]; 261 SetupRay(ray, point, target - point );264 SetupRay(ray, point, target - point, Ray::LOCAL_RAY); 262 265 if (!mesh->CastRay(ray, mi)) { 263 266 // the rays which intersect the mesh have been discarded since they are not tangent … … 395 398 396 399 // construct a ray 397 SetupRay(ray, point, direction );400 SetupRay(ray, point, direction, Ray::LOCAL_RAY); 398 401 399 402 sampleContributions = CastRay(object, ray);
Note: See TracChangeset
for help on using the changeset viewer.