Changeset 1305 for GTP/trunk/Lib/Vis/Preprocessing/src/VspTree.cpp
- Timestamp:
- 08/31/06 16:47:41 (18 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
GTP/trunk/Lib/Vis/Preprocessing/src/VspTree.cpp
r1303 r1305 709 709 // finally evaluate statistics for this leaf 710 710 EvaluateLeafStats(tData); 711 711 // detach subdivision candidate: this leaf is no candidate for 712 // splitting anymore 713 tData.mNode->SetSubdivisionCandidate(NULL); 712 714 // detach node so it won't get deleted 713 715 tData.mNode = NULL; … … 2691 2693 { 2692 2694 leaf->Mail(); 2693 dirtyList.push_back(leaf->GetSubdivisionCandidate());Debug << "here87700" << endl;2694 Debug << "here166 candidate: " << leaf->GetSubdivisionCandidate() << endl;2695 Debug << "here120 candidate: " << leaf->GetSubdivisionCandidate() << " type: " << leaf->GetSubdivisionCandidate()->Type() << endl;2696 Debug << "here877" << endl;2695 if (leaf->GetSubdivisionCandidate()) // a candidate still attached to this node 2696 { 2697 dirtyList.push_back(leaf->GetSubdivisionCandidate()); 2698 } 2697 2699 } 2698 2700 break; 2699 2701 } 2700 break;2701 2702 default: 2702 2703 break; … … 2794 2795 obj->Mail(); 2795 2796 obj->mCounter = 0; 2796 2797 2797 ++ pvsSize; 2798 2798 } 2799 2800 2799 ++ obj->mCounter; 2801 2800 break; … … 2815 2814 leaf->Mail(); 2816 2815 leaf->mCounter = 0; 2817 2818 2816 pvsSize += (int)leaf->mObjects.size(); 2819 2817 } 2820 2821 2818 ++ leaf->mCounter; 2822 2819 break; … … 2864 2861 { 2865 2862 BvhLeaf *leaf = mHierarchyManager->mBvHierarchy->GetLeaf(obj); 2866 2867 2863 if (!leaf->Mailed()) 2868 2864 { … … 2928 2924 ray.GetSampleData(isTermination, pt, &obj, &node); 2929 2925 2930 if (!obj) 2931 return 0; 2926 if (!obj) return 0; 2932 2927 2933 2928 int pvs = 0; … … 2977 2972 leaf->Mail(); 2978 2973 2979 int pvs = 0; 2980 pvs += (int)(leaf->mObjects.size() - leaf->mMultipleObjects.size()); 2974 int pvs = (int)(leaf->mObjects.size() - leaf->mMultipleObjects.size()); 2981 2975 2982 2976 ObjectContainer::const_iterator oit, oit_end = leaf->mMultipleObjects.end(); … … 2985 2979 { 2986 2980 Intersectable *obj = *oit; 2987 2988 2981 if (!obj->Mailed()) 2989 2982 { … … 2996 2989 } 2997 2990 2998 } 2991 2992 }
Note: See TracChangeset
for help on using the changeset viewer.