Changeset 1580 for GTP/trunk/Lib/Vis/Preprocessing/src/GvsPreprocessor.cpp
- Timestamp:
- 10/06/06 21:37:00 (18 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
GTP/trunk/Lib/Vis/Preprocessing/src/GvsPreprocessor.cpp
r1576 r1580 67 67 // set flag for visualization 68 68 newRay->mFlags |= VssRay::ReverseSample; 69 cout << "here9444 " << (int) newRay->mFlags << " " << newRay << endl;69 70 70 // ray is not pushed into the queue => can delete ray 71 71 if (!HandleRay(newRay)) … … 81 81 bool GvsPreprocessor::HandleRay(VssRay *vssRay) 82 82 { 83 cout << "x " << (int)vssRay->mFlags;84 83 const bool storeRaysForViz = true; 85 84 mViewCellsManager->ComputeSampleContribution(*vssRay, true, storeRaysForViz); … … 88 87 if (vssRay->mPvsContribution > 0) 89 88 { 89 // add new ray to ray queue 90 90 mRayQueue.push(vssRay); 91 91 … … 96 96 { 97 97 VssRay *nray = new VssRay(*vssRay); 98 nray->mFlags = vssRay->mFlags; 99 (*vit)->mVssRays.push_back(nray); 100 nray->mFlags = 10; 101 cout << "\nhere58 " << (int)nray->mFlags << " " << (int)vssRay->mFlags << endl; 98 (*vit)->mVssRays.push_back(nray); 102 99 } 103 100 } … … 205 202 206 203 if (!newRay) return 0; 207 newRay->mFlags |= VssRay::BorderSample; 204 205 newRay->mFlags |= VssRay::BorderSample; 206 207 // add new ray to queue 208 208 const bool enqueued = HandleRay(newRay); 209 209 … … 267 267 CastRays(simpleRays, vssRays, false, false); 268 268 269 // set flags 270 VssRayContainer::const_iterator rit, rit_end = vssRays.end(); 271 for (rit = vssRays.begin(); rit != rit_end; ++ rit) 272 {cout << "z"; 273 (*rit)->mFlags |= VssRay::BorderSample; 274 //(*rit)->mOriginObject = currentRay.mTerminationObject; 275 } 269 276 // add to ray queue 270 277 EnqueueRays(vssRays); … … 273 280 int castRays = (int)vssRays.size(); 274 281 275 VssRayContainer::const_iterator rit, rit_end = vssRays.end(); 276 for (rit = vssRays.begin(); rit != rit_end; ++ rit) 277 { 278 (*rit)->mFlags |= VssRay::BorderSample; 279 cout << "here390 " << (int) (*rit)->mFlags << endl; 280 } 281 282 #if 1 282 283 #if 0 283 284 // recursivly subdivide each edge 284 285 for (int i = 0; i < n; ++ i) … … 347 348 { 348 349 const long startTime = GetTime(); 349 350 //cout << "here8"<<endl; 350 351 // generate simple rays 351 352 SimpleRayContainer simpleRays; … … 433 434 /// construct the view cells from the scratch 434 435 ConstructViewCells(); 436 // reset pvs already gathered during view cells construction 437 mViewCellsManager->ResetPvs(); 435 438 cout << "finished view cell construction" << endl; 436 439 }
Note: See TracChangeset
for help on using the changeset viewer.