Changeset 2071 for GTP/trunk/Lib/Vis/Preprocessing/src/ViewCellsManager.cpp
- Timestamp:
- 02/01/07 14:42:05 (17 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
GTP/trunk/Lib/Vis/Preprocessing/src/ViewCellsManager.cpp
r2069 r2071 3655 3655 3656 3656 /////////// 3657 //-- faster way of computing pvs: 3658 //-- construct merged pvs by adding 3659 //-- and only those of the next pvs which were not mailed. 3660 //-- note: sumpdf is not correct!! 3657 //-- merge pvss 3661 3658 3662 3659 vector<ObjectPvs>::iterator oit = pvsList.begin(); … … 3666 3663 ObjectPvsIterator pit = (*oit).GetIterator(); 3667 3664 3668 // first mark all object from this pvs3665 // add pvss to new pvs: use mailing to avoid adding entries two times. 3669 3666 while (pit.HasMoreEntries()) 3670 3667 { … … 3677 3674 intersect->Mail(); 3678 3675 3679 if (pvs.AddSampleDirtyCheck(intersect, entry.mData.mSumPdf)) 3680 { 3681 if (pvs.RequiresResort()) 3682 { 3683 pvs.SimpleSort(); 3684 } 3685 } 3686 3676 pvs.AddSampleDirty(intersect, entry.mData.mSumPdf); 3687 3677 } 3688 3678 } 3689 3679 } 3680 3681 if (0) pvs.Sort(); 3690 3682 3691 3683 // store pvs in this node … … 3699 3691 3700 3692 #else 3701 // really merge cells: slow put sumPdf is correct3693 // really merge cells: slow but sumPdf is correct 3702 3694 viewCellInterior->GetPvs().Merge(backVc->GetPvs()); 3703 3695 viewCellInterior->GetPvs().Merge(frontVc->GetPvs());
Note: See TracChangeset
for help on using the changeset viewer.