Changeset 1291 for GTP/trunk/Lib/Vis/Preprocessing/src/BvHierarchy.cpp
- Timestamp:
- 08/28/06 18:42:33 (18 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
GTP/trunk/Lib/Vis/Preprocessing/src/BvHierarchy.cpp
r1288 r1291 25 25 26 26 static float debugVol = 0; 27 27 28 int BvhNode::sMailId = 2147483647; 29 int BvhNode::sReservedMailboxes = 1; 30 31 28 32 BvHierarchy *BvHierarchy::BvhSubdivisionCandidate::sBvHierarchy = NULL; 33 29 34 30 35 … … 530 535 Intersectable *obj = *oit; 531 536 AxisAlignedBox3 box = obj->GetBox(); 537 532 538 const float objMid = (box.Max(axis) + box.Min(axis)) * 0.5; 539 533 540 // object mailed => belongs to back objects 534 541 if (objMid < midPoint) … … 599 606 const int nObjectsRight = nTotalObjects - nObjectsLeft; 600 607 601 // view cells that see both child nodes602 //const float volLeftAndRight = totalVol - volLeft - volRight;603 604 608 // the heuristics 605 609 const float sum = volLeft * (float)nObjectsLeft + 606 610 volRight * (float)nObjectsRight; 607 // volLeftAndRight * (float)nTotalObjects;608 611 609 612 if (sum < newRenderCost) … … 811 814 { 812 815 if (mUseCostHeuristics) 813 { 816 {cout << "a"; 814 817 //-- partition objects using heuristics 815 818 nCostRatio[axis] = … … 821 824 } 822 825 else 823 { 826 {cout << "b"; 824 827 nCostRatio[axis] = 825 828 EvalLocalObjectPartition(
Note: See TracChangeset
for help on using the changeset viewer.