Changeset 706


Ignore:
Timestamp:
03/16/06 18:42:06 (18 years ago)
Author:
mattausch
Message:
 
Location:
GTP/trunk/Lib/Vis/Preprocessing/src
Files:
4 edited

Legend:

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

    r703 r706  
    181181        return mValid; 
    182182} 
    183  
    184  
    185 /*bool ViewCell::IsLeaf() const 
    186 { 
    187         return true; 
    188 }*/ 
    189183 
    190184 
  • GTP/trunk/Lib/Vis/Preprocessing/src/ViewCellsManager.cpp

    r705 r706  
    3131}; 
    3232 
    33 typedef priority_queue<ViewCell *, vector<ViewCell *>, myless<vector<ViewCell *>::value_type> > FilterQueue; 
     33//typedef priority_queue<ViewCell *, vector<ViewCell *>, myless<vector<ViewCell *>::value_type> > FilterQueue; 
    3434 
    3535 
     
    8585        environment->GetIntValue("ViewCells.Filter.maxSize", mMaxFilterSize); 
    8686        environment->GetFloatValue("ViewCells.Filter.width", mFilterWidth); 
    87  
     87//mSampleEmptyViewCells = true; 
    8888        char buf[100]; 
    8989        environment->GetStringValue("ViewCells.samplingType", buf); 
     
    593593                 
    594594                ViewCell *bestViewCell = neighborhood[bestViewCellIdx]; 
    595                 cout << "here2" << endl; 
     595         
    596596                // remove from vector 
    597597                swap(neighborhood[bestViewCellIdx], neighborhood.back()); 
     
    602602                        cout << "warning!!" << endl; 
    603603                 
    604                 cout << "here4" << endl; 
    605  
    606604                // create new root of the hierarchy 
    607605                root = MergeViewCells(root, bestViewCell); 
    608                 cout << "here5" << endl; 
    609606        } 
    610607 
     
    702699  for (it = mViewCells.begin(); it != it_end; ++ it) { 
    703700        if ((*it)->GetValid()) 
    704           valid++; 
     701          valid ++; 
    705702  } 
    706703  return valid; 
     
    944941        // generate parent view cell 
    945942        ViewCellInterior *vc = new ViewCellInterior();//GenerateViewCell(); 
    946                 cout << "here66" << endl; 
     943         
    947944        vc->GetPvs() = left->GetPvs(); 
    948                 cout << "here44" << endl; 
     945 
    949946        // merge pvs 
    950947        vc->GetPvs().Merge(right->GetPvs()); 
     
    961958        } 
    962959 
    963         cout << "here77" << endl; 
    964960        vc->SetupChildLink(left); 
    965         cout << "here88" << endl; 
    966961        vc->SetupChildLink(right); 
    967         cout << "here99" << endl; 
    968  
     962         
    969963        return vc; 
    970964} 
     
    12261220                ViewCell *viewcell = *it; 
    12271221 
    1228                 if (viewcell->GetValid())  
     1222                if (viewcell->GetValid())// && mSampleEmptyViewCells) // HACK 
    12291223                { 
    12301224                        // HACK 
    1231                         if (TEST_EMPTY_VIEW_CELLS) 
     1225#if TEST_EMPTY_VIEW_CELLS 
    12321226                                for (int i = 0; i < mEmptyViewCells.size(); ++i) 
    12331227                                { 
     
    12381232                                        } 
    12391233                                } 
    1240  
     1234#endif 
    12411235                        // if ray not outside of view space 
    12421236                        float contribution; 
     
    12671261                        ViewCell *viewcell = *it; 
    12681262             
    1269                         if (viewcell->GetValid())  
     1263                        if (viewcell->GetValid()) 
    12701264                        { 
    12711265                                // if ray not outside of view space 
  • GTP/trunk/Lib/Vis/Preprocessing/src/ViewCellsManager.h

    r704 r706  
    511511        ViewCellsTree *mViewCellsTree; 
    512512 
     513        //bool mSampleEmptyViewCells; 
     514 
    513515        /// maximum number of samples taken for construction of the view cells 
    514516        int mConstructionSamples; 
  • GTP/trunk/Lib/Vis/Preprocessing/src/X3dExporter.cpp

    r694 r706  
    11381138void X3dExporter::ExportGeometry(const ObjectContainer &objects) 
    11391139{ 
    1140 #if 0 
     1140#if 1 
    11411141        for (int j = 0; j < objects.size(); ++ j) 
    11421142                ExportIntersectable(objects[j]); 
Note: See TracChangeset for help on using the changeset viewer.