Changeset 1179 for GTP/trunk/Lib/Vis/Preprocessing/src
- Timestamp:
- 08/02/06 17:40:16 (18 years ago)
- Location:
- GTP/trunk/Lib/Vis/Preprocessing/src
- Files:
-
- 4 edited
Legend:
- Unmodified
- Added
- Removed
-
GTP/trunk/Lib/Vis/Preprocessing/src/ViewCell.cpp
r1178 r1179 251 251 float &contribution) 252 252 { 253 Debug << "here9 "<< endl;254 Debug << "here2 " << mVolume << endl;255 253 const bool result = mPvs.AddSample(sample, pdf, contribution); 256 Debug << "here4" << endl; 257 // update pvs size scalar 258 //mPvsSize = mPvs.GetSize(); 259 mPvsSizeValid = false; // recompute pvs size 254 255 mPvsSizeValid = false; // have to recompute pvs size 260 256 261 257 return result; … … 1526 1522 1527 1523 ViewCellContainer::const_iterator it, it_end = interior->mChildren.end(); 1528 Debug << "\nhere92" << endl; 1524 1529 1525 for (it = interior->mChildren.begin(); it != it_end; ++ it) 1530 1526 { 1531 Debug << "here15" << endl;1532 1527 ViewCell *vc = *it; 1533 1528 … … 1543 1538 } 1544 1539 1545 Debug << "\nhere1005" << endl; 1540 1546 1541 const float costDecr = (parentCost - childCost) / vol; 1547 1542 … … 1734 1729 if (vc->mPvsSizeValid) 1735 1730 { 1736 Debug << "here5"<<endl;1737 1731 return vc->mPvsSize; 1738 1732 } 1739 1733 1740 Debug << "here2"<<endl;1741 1742 1734 // if no valid pvs size stored as a scalar => 1743 1735 // compute current pvs size of interior from it's leaf nodes -
GTP/trunk/Lib/Vis/Preprocessing/src/ViewCellsManager.cpp
r1178 r1179 4879 4879 4880 4880 long startTime; 4881 Debug << "here601" << endl; 4881 4882 4882 //mHierarchyManager->Construct(constructionRays, objects, &mViewSpaceBox); 4883 4883 mHierarchyManager->Construct2(constructionRays, objects, &mViewSpaceBox); … … 5726 5726 } 5727 5727 5728 5728 #if 0 5729 5729 void VspOspViewCellsManager::EvalViewCellPartition() 5730 5730 { 5731 Debug << "here23" << endl;5732 5731 int samplesPerPass; 5733 5732 int numSamples; … … 5799 5798 disposeRays(evaluationSamples, NULL); 5800 5799 } 5801 5800 #endif 5802 5801 ////////////////////////////////// 5803 5802 /*ViewCellsManager *ViewCellsManagerFactory::Create(const string mName) -
GTP/trunk/Lib/Vis/Preprocessing/src/ViewCellsManager.h
r1178 r1179 1011 1011 1012 1012 protected: 1013 1013 #if 0 1014 1014 virtual void EvalViewCellPartition(); 1015 1015 #endif 1016 1016 /** Exports view cell geometry. 1017 1017 */ -
GTP/trunk/Lib/Vis/Preprocessing/src/VspOspTree.cpp
r1178 r1179 3345 3345 { 3346 3346 RayInfoContainer usedRays; 3347 int mMaxTests = 5000; // HACK 3348 // if (mMaxTests < (int)tData.mRays->size()) 3349 // { 3350 // GetRayInfoSets(*tData.mRays, mMaxTests, usedRays); 3351 // } 3352 // else 3353 // { 3347 int mMaxTests = 500000; // HACK 3348 3349 if (mMaxTests < (int)tData.mRays->size()) 3350 { 3351 GetRayInfoSets(*tData.mRays, mMaxTests, usedRays); 3352 } 3353 else 3354 { 3354 3355 usedRays = *tData.mRays; 3355 //}3356 } 3356 3357 3357 3358 // go through the lists, count the number of objects left and right … … 4605 4606 mOspTree.PreprocessRays(sampleRays, rays); 4606 4607 4607 // add first candidate for view space partition4608 // create new root 4608 4609 KdLeaf *kdleaf = new KdLeaf(NULL, 0); 4609 4610 kdleaf->mObjects = objects; 4610 4611 4611 mOspTree.mRoot = kdleaf; 4612 4612 4613 // add first candidate for view space partition 4614 4613 4615 // TODO matt: this is something different than pvs size. 4614 4616 const int pvsSize = mOspTree.ComputePvsSize(objects); … … 4631 4633 4632 4634 mOspTree.mTotalCost = (float)objects.size(); 4633 Debug << "total cost here553: " << mOspTree.mTotalCost << endl;4634 4635 mOspTree.EvalSubdivisionStats(*oSplitCandidate); 4635 4636
Note: See TracChangeset
for help on using the changeset viewer.