Changeset 2606 for GTP/trunk/Lib/Vis/Preprocessing/src/ViewCellsManager.cpp
- Timestamp:
- 01/17/08 15:56:37 (16 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
GTP/trunk/Lib/Vis/Preprocessing/src/ViewCellsManager.cpp
r2601 r2606 2474 2474 int ViewCellsManager::GetNumViewCells() const 2475 2475 { 2476 2476 return (int)mViewCells.size(); 2477 2477 } 2478 2478 … … 2493 2493 2494 2494 // set only the termination object 2495 // if (vssRay->mTerminationObject == NULL) 2496 // cerr<<"Error NULL termination object!"<<endl; 2495 2497 vssRay->mTerminationObject = GetIntersectable(*vssRay, true); 2496 } 2497 } 2498 #if 0 2499 if (vssRay->mTerminationObject == NULL) { 2500 cerr<<"Error in DeterminePvsObjects - termination object maps to NULL!"<<endl; 2501 } 2502 #endif 2503 } 2504 } 2505 2498 2506 } 2499 2507 … … 3247 3255 for (int i = 0; it != it_end; ++ it, ++ i) 3248 3256 { 3249 3257 if ((*it) != viewCell) 3250 3258 { 3251 3252 3259 //cout<<"v"<<i<<" pvs="<<(*it)->GetPvs().mEntries.size()<<endl; 3260 basePvs.MergeInPlace((*it)->GetPvs()); 3253 3261 } 3254 3255 3256 3257 3258 3262 3263 // update samples and globalC 3264 samples = (float)pvs.GetSamples(); 3265 // cout<<"neighboring viewcells = "<<i-1<<endl; 3266 // cout<<"Samples' = "<<samples<<endl; 3259 3267 } 3260 3268 } … … 3342 3350 3343 3351 if (filteredBoxes) 3344 3345 3352 filteredBoxes->push_back(box); 3353 3346 3354 objects.clear(); 3347 3355 3348 3356 // $$ warning collect objects takes only unmailed ones! 3349 if (mUseKdPvs) 3350 GetPreprocessor()->mKdTree->CollectKdObjects(box, objects); 3351 else 3352 CollectObjects(box, objects); 3353 3357 if (mUseKdPvs) { 3358 // GetPreprocessor()->mKdTree->CollectKdObjects(box, objects); 3359 GetPreprocessor()->mKdTree->CollectSmallKdObjects(box, objects, 0.1f); 3360 3361 } else 3362 CollectObjects(box, objects); 3363 3354 3364 // cout<<"collected objects="<<objects.size()<<endl; 3355 3365 ObjectContainer::const_iterator noi = objects.begin(); 3356 3366 for (; noi != objects.end(); ++ noi) 3357 {3367 { 3358 3368 Intersectable *o = *noi; 3359 3369 // $$ JB warning: pdfs are not correct at this point!
Note: See TracChangeset
for help on using the changeset viewer.