Changeset 435 for trunk/VUT/GtpVisibilityPreprocessor/src/VssTree.cpp
- Timestamp:
- 11/25/05 16:51:47 (19 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/VUT/GtpVisibilityPreprocessor/src/VssTree.cpp
r434 r435 479 479 ); 480 480 481 //cout<<axis<<" r="<<costRatio<<endl;481 cout<<axis<<" r="<<costRatio<<endl; 482 482 483 483 if (costRatio > termMaxCostRatio) { … … 1611 1611 leaves++; 1612 1612 VssTreeLeaf *leaf = (VssTreeLeaf *)node; 1613 float c = leaf->Get AvgRayContribution();1613 float c = leaf->GetImportance(); 1614 1614 if (c > maxRayContribution) 1615 1615 maxRayContribution = c; … … 1645 1645 if (node->IsLeaf()) { 1646 1646 VssTreeLeaf *leaf = (VssTreeLeaf *)node; 1647 float c = leaf->Get AvgRayContribution();1647 float c = leaf->GetImportance(); 1648 1648 int num = (c*ratioPerLeaf + 0.5); 1649 1649 // cout<<num<<" "; … … 1776 1776 for (i=0; i < leaves.size() && k < numberOfLeaves; i++) 1777 1777 if (ValidLeaf(leaves[i])) { 1778 float c = leaves[i]->Get AvgRayContribution();1778 float c = leaves[i]->GetImportance(); 1779 1779 sumContrib += c; 1780 1780 // cout<<"ray contrib "<<i<<" : "<<c<<endl; … … 1789 1789 k++; 1790 1790 VssTreeLeaf *leaf = leaves[i]; 1791 float c = leaf->Get AvgRayContribution();1791 float c = leaf->GetImportance(); 1792 1792 int num = (c*ratioPerLeaf + 0.5); 1793 1793 GenerateLeafRays(leaf, num, rays); … … 1829 1829 1830 1830 1831 float 1832 VssTreeLeaf::GetImportance() const 1833 { 1834 return GetAvgRayContribution(); 1835 }
Note: See TracChangeset
for help on using the changeset viewer.