Changeset 2224 for GTP/trunk/Lib/Vis/Preprocessing/src/VspTree.h
- Timestamp:
- 03/09/07 18:30:24 (17 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
GTP/trunk/Lib/Vis/Preprocessing/src/VspTree.h
r2210 r2224 516 516 } 517 517 518 bool Apply(SplitQueue &splitQueue, bool terminationCriteriaMet )518 bool Apply(SplitQueue &splitQueue, bool terminationCriteriaMet, SubdivisionCandidateContainer &dirtyList) 519 519 { 520 520 VspNode *n = sVspTree->Subdivide(splitQueue, this, terminationCriteriaMet); 521 521 522 522 // local or global termination criteria failed 523 return !n->IsLeaf(); 523 const bool success = !n->IsLeaf(); 524 525 if (success) 526 CollectDirtyCandidates(dirtyList, true); 527 528 return success; 524 529 } 525 530 … … 556 561 float mCorrectedFrontRenderCost; 557 562 float mCorrectedBackRenderCost; 558 //float mCorrectedFrontVolume; 559 //float mCorrectedBackVolume; 560 563 561 564 float mFrontRenderCost; 562 565 float mBackRenderCost; … … 907 910 /** Evaluates contribution of min event to pvs 908 911 */ 909 inline int EvalMinEventContribution( 910 const VssRay &ray, const bool isTermination) const; 912 inline int EvalMinEventContribution(const VssRay &ray, const bool isTermination) const; 911 913 912 914 /** Evaluates contribution of max event to pvs … … 955 957 RayInfoContainer &backRays) const; 956 958 957 void UpdatePvsEntriesContribution(959 inline void UpdatePvsEntriesContribution( 958 960 const VssRay &ray, 959 961 const bool isTermination, … … 973 975 974 976 */ 975 void UpdateContributionsToPvs(977 inline void UpdateContributionsToPvs( 976 978 const VssRay &ray, 977 979 const bool isTermination, … … 983 985 /** Evaluates the contribution for objects. 984 986 */ 985 void UpdateContributionsToPvs(987 inline void UpdateContributionsToPvs( 986 988 Intersectable *obj, 987 989 const int cf, … … 992 994 /** Evaluates the contribution for bounding volume leaves. 993 995 */ 994 void UpdateContributionsToPvs(996 inline void UpdateContributionsToPvs( 995 997 BvhLeaf *leaf, 996 998 const int cf, 997 999 float &frontPvs, 998 1000 float &backPvs, 999 float &totalPvs m,1001 float &totalPvs, 1000 1002 const bool countEntries) const; 1001 1003 1002 1004 /** Evaluates the contribution for kd leaves. 1003 1005 */ 1004 void UpdateContributionsToPvs(1006 inline void UpdateContributionsToPvs( 1005 1007 KdLeaf *leaf, 1006 1008 const int cf, … … 1011 1013 /** Returns true if tree can be terminated. 1012 1014 */ 1013 bool LocalTerminationCriteriaMet(const VspTraversalData &data) const;1015 inline bool LocalTerminationCriteriaMet(const VspTraversalData &data) const; 1014 1016 1015 1017 /** Returns true if global tree can be terminated. 1016 1018 */ 1017 bool GlobalTerminationCriteriaMet(const VspTraversalData &data) const;1019 inline bool GlobalTerminationCriteriaMet(const VspTraversalData &data) const; 1018 1020 1019 1021 /** Adds ray sample contributions to the PVS.
Note: See TracChangeset
for help on using the changeset viewer.