Changeset 1072 for GTP/trunk/Lib/Vis/Preprocessing/src/VspBspTree.cpp
- Timestamp:
- 07/03/06 02:03:59 (18 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
GTP/trunk/Lib/Vis/Preprocessing/src/VspBspTree.cpp
r1047 r1072 1230 1230 ++ contributingSamples; 1231 1231 1232 // note: vss rays are never deleted 1232 1233 if (0) leaf->mVssRays.push_back(new VssRay(*ray)); 1233 1234 } … … 1610 1611 bestAxis = axis; 1611 1612 } 1612 else if (nCostRatio[axis] < nCostRatio[bestAxis]) 1613 /*else if (nCostRatio[axis] < nCostRatio[bestAxis]) 1614 { 1613 1615 Debug << "taking split along longest axis (" << bestAxis << ") instead of (" << axis << ")" << endl; 1614 1616 }*/ 1617 1615 1618 } 1616 1619 else … … 1629 1632 1630 1633 //-- assign values 1634 1631 1635 axis = bestAxis; 1632 1636 pFront = nProbFront[bestAxis]; … … 1646 1650 1647 1651 //Debug << "best axis: " << bestAxis << " pos " << nPosition[bestAxis] << endl; 1648 //Debug << "!!!!!!!!!!!!!!" << endl; 1652 1649 1653 return nCostRatio[bestAxis]; 1650 1654 } … … 1659 1663 { 1660 1664 // HACK matt: subdivide regularily to certain depth 1661 if (data.mDepth < 0) 1662 { 1663 cout << "d: " << data.mDepth << endl; 1665 if (data.mDepth < 0) // question matt: why depth < 0 ? 1666 { 1667 cout << "depth: " << data.mDepth << endl; 1668 1664 1669 // return axis aligned split 1665 1670 AxisAlignedBox3 box; … … 1675 1680 bestPlane = Plane3(norm, position); 1676 1681 splitAxis = axis; 1682 1677 1683 return true; 1678 1684 } … … 2509 2515 2510 2516 2511 void VspBspTree::CollectViewCells(ViewCellContainer &viewCells, bool onlyValid) const 2517 void VspBspTree::CollectViewCells(ViewCellContainer &viewCells, 2518 bool onlyValid) const 2512 2519 { 2513 2520 ViewCell::NewMail();
Note: See TracChangeset
for help on using the changeset viewer.