Changeset 1580 for GTP/trunk/Lib/Vis/Preprocessing/src/ViewCellsManager.cpp
- Timestamp:
- 10/06/06 21:37:00 (18 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
GTP/trunk/Lib/Vis/Preprocessing/src/ViewCellsManager.cpp
r1576 r1580 35 35 // HACK 36 36 const static bool SAMPLE_AFTER_SUBDIVISION = true; 37 const static bool CLAMP_TO_BOX = false;37 const static bool CLAMP_TO_BOX = true; 38 38 39 39 template <typename T> class myless … … 814 814 // potentially visible objects 815 815 return vc->AddPvsSample(obj, pdf, contribution); 816 } 817 818 819 void ViewCellsManager::ResetPvs() 820 { 821 if (ViewCellsTreeConstructed()) 822 { 823 mViewCellsTree->ResetPvs(); 824 } 825 else 826 { 827 cout << "view cells tree not constructed" << endl; 828 } 816 829 } 817 830 … … 1841 1854 1842 1855 if (ray.mTerminationObject) 1843 { 1856 { 1844 1857 if (viewcell->GetPvs().GetSampleContribution( 1845 1858 ray.mTerminationObject, … … 2932 2945 if (p < raysOut) 2933 2946 { 2934 cout << "here42 " << (int)(*rit)->mFlags << endl;2935 2947 if ((*rit)->mFlags & VssRay::BorderSample) 2948 { 2936 2949 vcRays.push_back(*rit); 2950 } 2937 2951 else if ((*rit)->mFlags & VssRay::ReverseSample) 2938 2952 vcRays2.push_back(*rit); … … 5309 5323 stream << "<VisibilitySolution>" << endl; 5310 5324 5311 5312 /////////////// 5313 //-- export bounding boxes 5314 //-- The bounding boxes are used to identify 5315 //-- the objects in the rendering engine 5316 5317 stream << "<BoundingBoxes>" << endl; 5318 ObjectContainer::const_iterator oit, oit_end = objects.end(); 5319 5320 for (oit = objects.begin(); oit != oit_end; ++ oit) 5321 { 5325 if (exportPvs) 5326 { 5327 /////////////// 5328 //-- export bounding boxes 5329 //-- The bounding boxes are used to identify 5330 //-- the objects in the rendering engine 5331 5332 stream << "<BoundingBoxes>" << endl; 5333 ObjectContainer::const_iterator oit, oit_end = objects.end(); 5334 5335 for (oit = objects.begin(); oit != oit_end; ++ oit) 5336 { 5322 5337 const AxisAlignedBox3 box = (*oit)->GetBox(); 5323 5338 stream << "<BoundingBox" << " id=\"" << (*oit)->GetId() << "\"" 5324 << " min=\"" << box.Min().x << " " << box.Min().y << " " << box.Min().z << "\"" 5325 << " max=\"" << box.Max().x << " " << box.Max().y << " " << box.Max().z << "\" />" << endl; 5326 } 5327 stream << "</BoundingBoxes>" << endl; 5328 5339 << " min=\"" << box.Min().x << " " << box.Min().y << " " << box.Min().z << "\"" 5340 5341 << " max=\"" << box.Max().x << " " << box.Max().y << " " << box.Max().z << "\" />" << endl; 5342 } 5343 5344 stream << "</BoundingBoxes>" << endl; 5345 } 5329 5346 5330 5347 //////////////////////////
Note: See TracChangeset
for help on using the changeset viewer.