Ignore:
Timestamp:
08/31/06 16:47:41 (18 years ago)
Author:
mattausch
Message:
 
File:
1 edited

Legend:

Unmodified
Added
Removed
  • GTP/trunk/Lib/Vis/Preprocessing/src/VspTree.cpp

    r1303 r1305  
    709709                // finally evaluate statistics for this leaf 
    710710                EvaluateLeafStats(tData); 
    711  
     711                // detach subdivision candidate: this leaf is no candidate for 
     712                // splitting anymore 
     713                tData.mNode->SetSubdivisionCandidate(NULL);  
    712714                // detach node so it won't get deleted 
    713715                tData.mNode = NULL; 
     
    26912693                        { 
    26922694                                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                                } 
    26972699                        } 
    26982700                        break; 
    26992701                } 
    2700                 break; 
    27012702        default: 
    27022703                break; 
     
    27942795                                obj->Mail(); 
    27952796                                obj->mCounter = 0; 
    2796  
    27972797                                ++ pvsSize; 
    27982798                        } 
    2799  
    28002799                        ++ obj->mCounter;        
    28012800                        break; 
     
    28152814                                leaf->Mail(); 
    28162815                                leaf->mCounter = 0; 
    2817  
    28182816                                pvsSize += (int)leaf->mObjects.size(); 
    28192817                        } 
    2820  
    28212818                        ++ leaf->mCounter;       
    28222819                        break; 
     
    28642861                { 
    28652862                        BvhLeaf *leaf = mHierarchyManager->mBvHierarchy->GetLeaf(obj); 
    2866  
    28672863                        if (!leaf->Mailed()) 
    28682864                        { 
     
    29282924        ray.GetSampleData(isTermination, pt, &obj, &node); 
    29292925 
    2930         if (!obj)  
    2931                 return 0; 
     2926        if (!obj) return 0; 
    29322927 
    29332928        int pvs = 0; 
     
    29772972        leaf->Mail(); 
    29782973 
    2979         int pvs = 0; 
    2980         pvs += (int)(leaf->mObjects.size() - leaf->mMultipleObjects.size()); 
     2974        int pvs = (int)(leaf->mObjects.size() - leaf->mMultipleObjects.size()); 
    29812975 
    29822976        ObjectContainer::const_iterator oit, oit_end = leaf->mMultipleObjects.end(); 
     
    29852979        { 
    29862980                Intersectable *obj = *oit; 
    2987  
    29882981                if (!obj->Mailed()) 
    29892982                { 
     
    29962989} 
    29972990 
    2998 } 
     2991 
     2992} 
Note: See TracChangeset for help on using the changeset viewer.