Changeset 712 for GTP/trunk/Lib/Vis/Preprocessing/src/ViewCellsManager.cpp
- Timestamp:
- 03/22/06 10:13:28 (18 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
GTP/trunk/Lib/Vis/Preprocessing/src/ViewCellsManager.cpp
r711 r712 16 16 #include "RssPreprocessor.h" 17 17 18 #define SAMPLE_AFTER_SUBDIVISION 1 19 #define TEST_EMPTY_VIEW_CELLS 0 18 // HACK 19 const static bool SAMPLE_AFTER_SUBDIVISION = true; 20 const static bool TEST_EMPTY_VIEW_CELLS = false; 20 21 21 22 … … 289 290 290 291 cout << "view cell construction: casting " << mInitialSamples << " initial samples ... "; 292 291 293 //-- construction rays => we use uniform samples for this 292 294 CastPassSamples(mInitialSamples, … … 319 321 if (1) // export initial view cells 320 322 { 321 cout << "exporting initial view cells (=leaves) ... "; 322 Exporter *exporter = Exporter::GetExporter("view_cells.x3d"); 323 323 const char filename[] = "view_cells.wrl"; 324 Exporter *exporter = Exporter::GetExporter(filename); 325 326 324 327 if (exporter) 325 328 { 329 cout << "exporting initial view cells (=leaves) to " << filename << " ... "; 326 330 if (mExportGeometry) 331 { 327 332 exporter->ExportGeometry(preprocessor->mObjects); 328 333 } 334 335 //exporter->SetWireframe(); 329 336 ExportViewCellsForViz(exporter); 330 337 331 338 delete exporter; 332 }333 cout << "finished" << endl;339 cout << "finished" << endl; 340 } 334 341 } 335 342 … … 340 347 bool dirSamples = (mSamplingType == Preprocessor::DIRECTION_BASED_DISTRIBUTION); 341 348 349 // -- the main loop 342 350 while (numSamples < n) 343 351 { … … 362 370 363 371 // TODO: leak? 364 if ( SAMPLE_AFTER_SUBDIVISION)372 if (1 || SAMPLE_AFTER_SUBDIVISION) 365 373 ComputeSampleContributions(constructionSamples, true, false); 374 366 375 cout << "finished" << endl; 367 376 … … 606 615 neighborhood.pop_back(); 607 616 608 cout << "vc idx: " << bestViewCellIdx << endl;617 //cout << "vc idx: " << bestViewCellIdx << endl; 609 618 if (!bestViewCell || !root) 610 619 cout << "warning!!" << endl; … … 1689 1698 mColorCode = 1; 1690 1699 1691 Exporter *exporter = Exporter::GetExporter("final_view_cells. x3d");1700 Exporter *exporter = Exporter::GetExporter("final_view_cells.wrl"); 1692 1701 1693 1702 cout << "exporting view cells after merge (pvs size) ... "; … … 3377 3386 int savedColorCode = mColorCode; 3378 3387 mColorCode = 0; 3379 Exporter *exporter = Exporter::GetExporter("final_view_cells. x3d");3388 Exporter *exporter = Exporter::GetExporter("final_view_cells.wrl"); 3380 3389 3381 3390 if (exporter)
Note: See TracChangeset
for help on using the changeset viewer.