Changeset 1774 for GTP/trunk/Lib/Vis/Preprocessing/src
- Timestamp:
- 11/21/06 11:06:24 (18 years ago)
- Location:
- GTP/trunk/Lib/Vis/Preprocessing/src
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
GTP/trunk/Lib/Vis/Preprocessing/src/BvHierarchy.cpp
r1770 r1774 2442 2442 } 2443 2443 2444 } 2444 2445 void BvHierarchy::InititialSubdivision() 2446 { 2447 } 2448 2449 2450 void ChooseSplitPlane(BvhLeaf *leaf) 2451 {/* 2452 std::stable_sort(objects.begin(), objects.end(), ilt); 2453 2454 // intersected objects 2455 MeshInstance sObj(NULL); 2456 2457 if (sObj.mId >= 0) 2458 { 2459 ObjectContainer::iterator oit = 2460 lower_bound(objects.begin(), objects.end(), &sObj, ilt); 2461 sourceObj = *oit; 2462 } 2463 */ 2464 } 2465 2466 2467 bool BvHierarchy::InitialTerminationCriteriaMet(BvhLeaf *leaf) 2468 { 2469 /*if (((int)leaf->mObjects.size() < mInititialObjectsSize) || 2470 (leaf->mObjects.end().GetBoundingBox().SurfaceArea() < mMinInitialSuffaceArea)) 2471 2472 { 2473 return true; 2474 }*/ 2475 return false; 2476 } 2477 2478 2479 } -
GTP/trunk/Lib/Vis/Preprocessing/src/BvHierarchy.h
r1765 r1774 889 889 890 890 891 /////////////////////////////////// 892 // initial subdivision 893 894 /** Makes an initial parititon of the object space based on 895 some criteria (size, shader) 896 */ 897 void InititialSubdivision(); 898 899 void ChooseSplitPlane(BvhLeaf *leaf); 900 901 bool InitialTerminationCriteriaMet(BvhLeaf *leaf); 902 float mMinInitialSuffaceArea; 891 903 protected: 892 904
Note: See TracChangeset
for help on using the changeset viewer.