Ignore:
Timestamp:
08/20/07 12:51:12 (17 years ago)
Author:
mattausch
Message:
 
File:
1 edited

Legend:

Unmodified
Added
Removed
  • GTP/trunk/Lib/Vis/Preprocessing/src/VssPreprocessor.cpp

    r2332 r2542  
    254254{ 
    255255        //debuggerWidget = new GlDebuggerWidget(renderer); 
    256         //  renderer->resize(640, 480); 
     256        //renderer->resize(640, 480); 
    257257        //debuggerWidget->resize(640, 480); 
    258258 
     
    265265        exporter->ExportGeometry(objects); 
    266266        exporter->SetFilled(); 
     267         
    267268        //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; 
    272274        debuggerWidget->mSourceObject = sourceObj; 
    273275        debuggerWidget->mSamples = 10000; 
     
    276278        debuggerWidget->show(); 
    277279         
    278         renderer->makeCurrent();*/ 
     280        renderer->makeCurrent(); 
     281        */ 
    279282 
    280283        for (int i = 0; i < 10; ++ i) 
     
    299302 
    300303                BeamSampleStatistics stats; 
    301 // §§matt 
    302 /*              renderer->SampleBeamContributions(sourceObj, 
     304 
     305                // §§matt 
     306                /*       
     307                renderer->SampleBeamContributions(sourceObj, 
    303308                                                                                  beam, 
    304309                                                                                  200000, 
     
    310315                image.save(s, "PNG"); 
    311316                Debug << "beam statistics: " << stats << endl << endl; 
    312 */ 
     317                */ 
     318 
    313319                if (1) 
    314320                { 
     
    321327                } 
    322328 
    323                 bool exportViewCells = false; 
     329                const bool exportViewCells = false; 
     330 
    324331                if (exportViewCells) 
    325332                { 
     
    338345                                exporter->ExportViewCell(*it); 
    339346                        } 
    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                         }*/ 
    347347                } 
    348348        } 
    349         /*while (1) 
    350         { debuggerWidget->repaint(); 
    351         };*/ 
     349         
    352350        delete exporter; 
    353351} 
     
    376374        int totalSamples = 0; 
    377375 
    378         //mSceneGraph->CollectObjects(&mObjects); 
    379  
    380376        if (!mLoadViewCells) 
    381377        { 
    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 
    384379                ConstructViewCells(); 
    385380        } 
     
    387382        else  
    388383        {         
    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                 
    393389                mViewCellsManager->ExportViewCells("test.xml.zip", mViewCellsManager->GetExportPvs(), mObjects); 
    394390        } 
     
    401397        { 
    402398                cout << "Loading samples from file ... "; 
     399                 
    403400                LoadSamples(mVssRays, mObjects); 
     401                 
    404402                cout << "finished\n" << endl; 
    405403                totalSamples = (int)mVssRays.size(); 
Note: See TracChangeset for help on using the changeset viewer.