Changeset 2542 for GTP/trunk/Lib/Vis/Preprocessing/src/VssPreprocessor.cpp
- Timestamp:
- 08/20/07 12:51:12 (17 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
GTP/trunk/Lib/Vis/Preprocessing/src/VssPreprocessor.cpp
r2332 r2542 254 254 { 255 255 //debuggerWidget = new GlDebuggerWidget(renderer); 256 // 256 //renderer->resize(640, 480); 257 257 //debuggerWidget->resize(640, 480); 258 258 … … 265 265 exporter->ExportGeometry(objects); 266 266 exporter->SetFilled(); 267 267 268 //Randomize(); 268 // §§matt 269 // debuggerWidget = new GlDebuggerWidget(renderer); 270 271 /*debuggerWidget->mBeam = beam; 269 //§§matt 270 //debuggerWidget = new GlDebuggerWidget(renderer); 271 272 /* 273 debuggerWidget->mBeam = beam; 272 274 debuggerWidget->mSourceObject = sourceObj; 273 275 debuggerWidget->mSamples = 10000; … … 276 278 debuggerWidget->show(); 277 279 278 renderer->makeCurrent();*/ 280 renderer->makeCurrent(); 281 */ 279 282 280 283 for (int i = 0; i < 10; ++ i) … … 299 302 300 303 BeamSampleStatistics stats; 301 // §§matt 302 /* renderer->SampleBeamContributions(sourceObj, 304 305 // §§matt 306 /* 307 renderer->SampleBeamContributions(sourceObj, 303 308 beam, 304 309 200000, … … 310 315 image.save(s, "PNG"); 311 316 Debug << "beam statistics: " << stats << endl << endl; 312 */ 317 */ 318 313 319 if (1) 314 320 { … … 321 327 } 322 328 323 bool exportViewCells = false; 329 const bool exportViewCells = false; 330 324 331 if (exportViewCells) 325 332 { … … 338 345 exporter->ExportViewCell(*it); 339 346 } 340 341 /*vector<KdNode *>::const_iterator it, it_end = beam.mKdNodes.end();342 343 for (it = beam.mKdNodes.begin(); it != beam.mKdNodes.end(); ++ it)344 {345 exporter->ExportBox(mKdTree->GetBox((*it)));346 }*/347 347 } 348 348 } 349 /*while (1) 350 { debuggerWidget->repaint(); 351 };*/ 349 352 350 delete exporter; 353 351 } … … 376 374 int totalSamples = 0; 377 375 378 //mSceneGraph->CollectObjects(&mObjects);379 380 376 if (!mLoadViewCells) 381 377 { 382 //-- generate new view cells from the scratch 383 //-- for construction the manager uses it's own set of samples 378 // generate new view cells from the scratch using coarse sampling 384 379 ConstructViewCells(); 385 380 } … … 387 382 else 388 383 { 389 //-- load view cells from file 390 //-- test successful view cells loading by exporting them again 391 VssRayContainer dummies; 392 mViewCellsManager->Visualize(mObjects, dummies); 384 // load view cells from file 385 // we test success by exporting view cells again 386 VssRayContainer dummyContainer; 387 mViewCellsManager->Visualize(mObjects, dummyContainer); 388 393 389 mViewCellsManager->ExportViewCells("test.xml.zip", mViewCellsManager->GetExportPvs(), mObjects); 394 390 } … … 401 397 { 402 398 cout << "Loading samples from file ... "; 399 403 400 LoadSamples(mVssRays, mObjects); 401 404 402 cout << "finished\n" << endl; 405 403 totalSamples = (int)mVssRays.size();
Note: See TracChangeset
for help on using the changeset viewer.