Changeset 2542 for GTP/trunk/Lib/Vis/Preprocessing/src/VspTree.cpp
- Timestamp:
- 08/20/07 12:51:12 (17 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
GTP/trunk/Lib/Vis/Preprocessing/src/VspTree.cpp
r2539 r2542 792 792 793 793 mPlaneTimer.Exit(); 794 795 794 mEvalTimer.Entry(); 796 795 797 796 VspLeaf *leaf = static_cast<VspLeaf *>(splitCandidate.mParentData.mNode); 797 798 798 799 799 ////////////// … … 832 832 833 833 #if COUNT_ORIGIN_OBJECTS 834 835 834 obj = (*ray).mOriginObject; 836 835 … … 838 837 { 839 838 leaf = mBvHierarchy->GetLeaf(obj); 840 841 839 UpdateContributionsToPvs(leaf, cf, sData); 842 840 } … … 3227 3225 3228 3226 void VspTree::AddCandidateToDirtyList(const VssRay &ray, 3229 const bool isTermination,3230 vector<SubdivisionCandidate *> &dirtyList,3231 const bool onlyUnmailed) const3227 const bool isTermination, 3228 vector<SubdivisionCandidate *> &dirtyList, 3229 const bool onlyUnmailed) const 3232 3230 3233 3231 { 3234 3232 #if HACK_PERFORMANCE 3235 3236 3233 Intersectable *obj = isTermination ? ray.mTerminationObject : ray.mOriginObject; 3237 3234 … … 3251 3248 } 3252 3249 #else 3253 3254 3250 SubdivisionCandidate *candidate = NULL; 3255 3251 … … 3379 3375 // simple render cost evaluation 3380 3376 if (-- leaf->mCounter == 0) 3381 //pvs += (int)leaf->mObjects.size();3382 3377 pvs += BvHierarchy::EvalAbsCost(leaf->mObjects); 3378 3383 3379 break; 3384 3380 } … … 3466 3462 return pvsSize; 3467 3463 #endif 3468 3469 3464 } 3470 3465
Note: See TracChangeset
for help on using the changeset viewer.