Changeset 708


Ignore:
Timestamp:
03/17/06 17:30:28 (18 years ago)
Author:
mattausch
Message:
 
Location:
GTP/trunk/Lib/Vis/Preprocessing
Files:
2 added
4 edited

Legend:

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

    r697 r708  
    13211321        RegisterOption("ViewCells.Visualization.colorCode", 
    13221322                                        optString, 
    1323                                         "view_cells_visualization_color_code", 
     1323                                        "view_cells_visualization_color_code=", 
    13241324                                        "PVS"); 
    13251325 
    13261326        RegisterOption("ViewCells.Visualization.clipPlanePos", 
    13271327                                        optFloat, 
    1328                                         "view_cells_visualization_clip_plane_pos", 
     1328                                        "view_cells_visualization_clip_plane_pos=", 
    13291329                                        "0.35"); 
    13301330         
    13311331        RegisterOption("ViewCells.Visualization.exportGeometry", 
    13321332                                        optBool, 
    1333                                         "view_cells_visualization_export_geometry", 
     1333                                        "view_cells_visualization_export_geometry=", 
    13341334                                        "false"); 
    13351335 
    13361336        RegisterOption("ViewCells.Visualization.exportRays", 
    13371337                                        optBool, 
    1338                                         "view_cells_visualization_export_rays", 
     1338                                        "view_cells_visualization_export_rays=", 
    13391339                                        "false"); 
    13401340 
    13411341        RegisterOption("ViewCells.pruneEmptyViewCells", 
    13421342                                        optBool, 
    1343                                         "view_cells_prune_empty_view_cells", 
     1343                                        "view_cells_prune_empty=", 
    13441344                                        "false"); 
    13451345 
    13461346        RegisterOption("ViewCells.processOnlyValidViewCells", 
    13471347                                        optBool, 
    1348                                         "view_cells_process_only_valid_view_cells", 
     1348                                        "view_cells_process_only_valid_view_cells=", 
    13491349                                        "false"); 
    13501350 
  • GTP/trunk/Lib/Vis/Preprocessing/src/ViewCell.cpp

    r706 r708  
    619619        } 
    620620 
    621          
    622621        // adjust stats and reset queue one final time 
    623622        mExpectedCost = realExpectedCost; 
     
    627626        UpdateActiveViewCells(activeViewCells); 
    628627 
    629          
    630628        // refine view cells and reset costs 
    631629        if (mRefineViewCells) 
     
    633631        else 
    634632                ResetMergeQueue(); 
     633 
    635634 
    636635        // create a root node if the merge was not done till root level, 
     
    653652                mRoot = activeViewCells[0]; 
    654653        } 
    655  
     654         
    656655        //-- empty merge queue just in case 
    657656        while (!mMergeQueue.empty()) 
     
    675674        // assign colors for the view cells so that at least one is always consistent 
    676675        AssignRandomColors(); 
    677          
     676 
    678677        //TODO: should return sample contributions? 
    679678        return mergeStats.merged; 
     
    16861685         
    16871686        tqueue.push(mRoot); 
     1687         
    16881688        mRoot->SetColor(RandomColor(0.3f, 1.0f)); 
    16891689         
     
    17181718 
    17191719                                if (maxViewCell) 
     1720                                { 
    17201721                                        maxViewCell->SetColor(vc->GetColor()); 
     1722                                } 
    17211723                                 
    17221724                                tqueue.push(v); 
  • GTP/trunk/Lib/Vis/Preprocessing/src/ViewCellsManager.cpp

    r707 r708  
    12231223                ViewCell *viewcell = *it; 
    12241224 
    1225                 if (viewcell->GetValid())// && mSampleEmptyViewCells) // HACK 
     1225                if (viewcell->GetValid()) 
    12261226                { 
    12271227                        // HACK 
     
    31643164 
    31653165        // check if new view cells turned invalid 
     3166        Debug << "setting validity, min: " << mMinPvsSize << " max: " << mMaxPvsSize << endl; 
     3167        cout << "setting validity, min: " << mMinPvsSize << " max: " << mMaxPvsSize << endl; 
    31663168        SetValidity(mMinPvsSize, mMaxPvsSize);  
    31673169        // update valid view space according to valid view cells 
    3168         mVspBspTree->ValidateTree(); 
     3170        if (0) 
     3171                mVspBspTree->ValidateTree(); 
    31693172 
    31703173        // has to be recomputed 
     
    31833186        } 
    31843187 
     3188         
    31853189        //-- merge the individual view cells 
    31863190        MergeViewCells(postProcessRays, objects); 
    31873191         
     3192 
    31883193        // only for testing 
    31893194        TestSubdivision(); 
     
    37633768                                { 
    37643769                                        exporter->ExportPolygons(back.GetPolys()); 
    3765                                 } 
    3766                          
     3770                                }                        
    37673771                        } 
    37683772                } 
     
    40534057                vector<BspLeaf *> leaves; 
    40544058                mVspBspTree->CollectLeaves(leaves); 
     4059         
    40554060                mVspBspTree->CollectMergeCandidates(leaves, candidates); 
    40564061        } 
  • GTP/trunk/Lib/Vis/Preprocessing/src/VspBspTree.cpp

    r697 r708  
    31683168                        ViewCell *viewCell; 
    31693169                         
    3170                         viewCell = mViewCellsTree->GetActiveViewCell(leaf->GetViewCell()); 
    3171                         //viewCell = leaf->GetViewCell(); 
     3170                        if (0) 
     3171                                viewCell = mViewCellsTree->GetActiveViewCell(leaf->GetViewCell()); 
     3172                        else 
     3173                                viewCell = leaf->GetViewCell(); 
    31723174 
    31733175                        if (!viewCell->Mailed()) 
Note: See TracChangeset for help on using the changeset viewer.