Changeset 3071 for GTP/trunk/App/Demos/Vis/FriendlyCulling/src/Bvh.cpp
- Timestamp:
- 10/26/08 20:39:31 (16 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
GTP/trunk/App/Demos/Vis/FriendlyCulling/src/Bvh.cpp
r3070 r3071 1184 1184 while (1) 1185 1185 { 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; 1197 1188 1198 1189 // sorting finished … … 1216 1207 // spatial median 1217 1208 float m = leaf->mBox.Center()[axis]; 1218 //cout << "here3 " << leaf->mBox << " " << leaf->mFirst << " " << leaf->mLast << endl;1219 1209 return SortTriangles(leaf, axis, m); 1220 1210 } … … 1229 1219 leaf->mIsVirtualLeaf = true; 1230 1220 leaf->mIsMaxDepthForVirtualLeaf = true; 1221 cout << "leaf contructed:" << leaf->mBox << " " << leaf->mFirst << " " << leaf->mLast << endl; 1231 1222 return leaf; 1232 1223 }
Note: See TracChangeset
for help on using the changeset viewer.