Ignore:
Timestamp:
10/26/08 20:39:31 (16 years ago)
Author:
mattausch
Message:

worked on dynamic objects

File:
1 edited

Legend:

Unmodified
Added
Removed
  • GTP/trunk/App/Demos/Vis/FriendlyCulling/src/Bvh.cpp

    r3070 r3071  
    11841184    while (1) 
    11851185        { 
    1186                 while (mGeometry[i]->GetWorldCenter()[axis] < position)  
    1187                 { 
    1188                         //cout<<" i " << i << " " << mGeometry[i]->GetWorldCenter()[axis]; 
    1189                         ++ i; 
    1190                 } 
    1191  
    1192                 while (position < mGeometry[j]->GetWorldCenter()[axis]) 
    1193                 { 
    1194                         //cout<< axis << " j " << j << " " << mGeometry[j]->GetWorldCenter()[axis] << " " << position<< " "; 
    1195                         -- j; 
    1196                 } 
     1186                while (mGeometry[i]->GetWorldCenter()[axis] < position) ++ i; 
     1187                while (position < mGeometry[j]->GetWorldCenter()[axis]) -- j; 
    11971188 
    11981189                // sorting finished 
     
    12161207        // spatial median 
    12171208        float m = leaf->mBox.Center()[axis]; 
    1218         //cout << "here3 " << leaf->mBox << " " << leaf->mFirst << " " << leaf->mLast << endl; 
    12191209        return SortTriangles(leaf, axis, m); 
    12201210} 
     
    12291219                leaf->mIsVirtualLeaf = true; 
    12301220                leaf->mIsMaxDepthForVirtualLeaf = true; 
     1221                cout << "leaf contructed:" << leaf->mBox << " " << leaf->mFirst << " " << leaf->mLast << endl; 
    12311222                return leaf; 
    12321223        } 
Note: See TracChangeset for help on using the changeset viewer.