Changeset 944 for GTP/trunk/Lib/Vis/Preprocessing/src/ViewCellsManager.cpp
- Timestamp:
- 05/10/06 18:33:35 (18 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
GTP/trunk/Lib/Vis/Preprocessing/src/ViewCellsManager.cpp
r938 r944 1861 1861 1862 1862 1863 bool ViewCellsManager::ExportViewCells(const string filename, const bool exportPvs, const ObjectContainer &objects) 1863 bool ViewCellsManager::ExportViewCells(const string filename, 1864 const bool exportPvs, 1865 const ObjectContainer &objects) 1864 1866 { 1865 1867 return false; … … 1880 1882 // active view cells 1881 1883 ViewCellContainer::const_iterator it, it_end = mViewCells.end(); 1884 1882 1885 for (it = mViewCells.begin(); it != it_end; ++ it) 1883 1886 { … … 4727 4730 ObjectContainer *objects, 4728 4731 Environment *env, 4732 const bool finalizeViewCells, 4729 4733 BoundingBoxConverter *bconverter) 4734 4730 4735 { 4731 4736 ViewCellsParser parser; … … 4733 4738 ViewCellsManager *vm = NULL; 4734 4739 4735 Debug << "here23 filename: " << filename << endl;4736 //BoundingBoxConverter bconverter;4737 4738 4740 if (parser.ParseFile(filename, &vm, objects, bconverter, env)) 4739 {Debug << "here25 filename: " << filename << endl; 4741 { 4742 long startTime = GetTime(); 4743 4740 4744 //vm->PrepareLoadedViewCells(); 4741 4745 vm->ResetViewCells(); … … 4745 4749 4746 4750 // create the meshes and compute volumes 4747 vm->FinalizeViewCells(true); 4748 4749 vm->mViewCellsTree->AssignRandomColors(); 4750 Debug << (int)vm->mViewCells.size() << " view cells loaded" << endl; 4751 if (finalizeViewCells) 4752 { 4753 vm->FinalizeViewCells(true); 4754 vm->mViewCellsTree->AssignRandomColors(); 4755 } 4756 4757 Debug << (int)vm->mViewCells.size() << " view cells loaded in " 4758 << TimeDiff(startTime, GetTime()) * 1e-3 << " secs" << endl; 4751 4759 } 4752 4760 else … … 4785 4793 4786 4794 //-- export the view cells and the pvs 4787 stream << "<ViewCells>" << endl; 4795 const int numViewCells = mCurrentViewCellsStats.viewCells; 4796 4797 stream << "<ViewCells number=\"" << numViewCells << "\" />" << endl; 4788 4798 4789 4799 mViewCellsTree->Export(stream, exportPvs);
Note: See TracChangeset
for help on using the changeset viewer.