Changeset 1877 for GTP/trunk/Lib/Vis/Preprocessing/src/RssTree.h
- Timestamp:
- 12/11/06 08:31:01 (18 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
GTP/trunk/Lib/Vis/Preprocessing/src/RssTree.h
r1876 r1877 433 433 RayInfoContainer rays; 434 434 int mTotalRays; 435 435 float mTotalContribution; 436 436 437 bool mValidPvs; 437 438 … … 440 441 RssTreeLeaf(RssTreeInterior *p, 441 442 const int nRays 442 ):RssTreeNode(p), rays(), mPvsSize(0), mTotalRays(0), mValidPvs(false) { 443 ):RssTreeNode(p), rays(), mPvsSize(0), mTotalRays(0), 444 mTotalContribution(0.0f), mValidPvs(false) { 443 445 rays.reserve(nRays); 444 446 } … … 455 457 456 458 void AddRay(const RayInfo &data) { 457 mValidPvs = false; 458 rays.push_back(data); 459 mTotalRays++; 460 data.mRay->Ref(); 459 mValidPvs = false; 460 rays.push_back(data); 461 mTotalRays++; 462 mTotalContribution += 463 ABS_CONTRIBUTION_WEIGHT*data.mRay->mPvsContribution + 464 (1.0f - ABS_CONTRIBUTION_WEIGHT)*data.mRay->mRelativePvsContribution; 465 data.mRay->Ref(); 461 466 } 462 467 … … 1066 1071 1067 1072 int 1068 PruneRays(RssTreeLeaf *leaf,1069 const float contributionThreshold);1070 int1071 1073 PruneRaysRandom(RssTreeLeaf *leaf, 1072 1074 const float ratio);
Note: See TracChangeset
for help on using the changeset viewer.