- Timestamp:
- 12/02/05 19:46:07 (19 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/VUT/GtpVisibilityPreprocessor/src/SamplingPreprocessor.cpp
r441 r444 32 32 const Ray::Intersection &origin) 33 33 { 34 35 36 37 34 ray.intersections.clear(); 35 ray.kdLeaves.clear(); 36 ray.testedObjects.clear(); 37 ray.bspIntersections.clear(); 38 38 39 39 ray.mFlags |= Ray::STORE_KDLEAVES | Ray::STORE_BSP_INTERSECTIONS; 40 // cout<<point<<" "<<direction<<endl; 41 ray.Init(point, direction, type); 40 // cout<<point<<" "<<direction<<endl; 41 42 ray.Init(point, direction, type); 42 43 ray.sourceObject = origin; 43 44 } … … 319 320 Ray *ray = new Ray(); 320 321 321 // the source object322 Ray::Intersection source =323 Ray::Intersection(0, reverseSample ? NULL : object, faceIndex);324 325 322 // construct a ray 326 SetupRay(*ray, point, direction, Ray::LOCAL_RAY, source); 323 SetupRay(*ray, point, direction, Ray::LOCAL_RAY, 324 Ray::Intersection(0, reverseSample ? NULL : object, faceIndex)); 325 327 326 passRays.push_back(ray); 328 327 … … 428 427 { 429 428 for (it = newRays.begin(); it != it_end; ++ it) 429 { 430 430 mVssSampleRays.push_back(new VssRay(*(*it))); 431 } 431 432 } 432 433 else 433 434 { 435 // construct view cells using the collected samples 436 cout << "building view cells from " << (int)mVssSampleRays.size() << " samples " << endl; 437 434 438 mViewCellsManager->Construct(objects, mVssSampleRays); 435 436 // construct view cells using the collected samples 437 cout << "building view cells from " << (int)mSampleRays.size() << " samples " << endl; 438 439 // add contributions of saved samples to PVS 440 //contributingSamples += mBspTree->GetStat().contributingSamples; 441 //sampleContributions += mBspTree->GetStat().sampleContributions; 442 439 443 440 // throw away samples 444 441 CLEAR_CONTAINER(mVssSampleRays);
Note: See TracChangeset
for help on using the changeset viewer.