Changeset 469 for trunk/VUT/GtpVisibilityPreprocessor/src/VssTree.cpp
- Timestamp:
- 12/16/05 18:52:33 (19 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/VUT/GtpVisibilityPreprocessor/src/VssTree.cpp
r466 r469 972 972 973 973 if ( (int)(leaf->rays.size()) > stat.maxRayRefs) 974 stat.maxRayRefs = leaf->rays.size();974 stat.maxRayRefs = (int)leaf->rays.size(); 975 975 976 976 } … … 1128 1128 1129 1129 // update stats 1130 stat.rayRefs -= leaf->rays.size();1130 stat.rayRefs -= (int)leaf->rays.size(); 1131 1131 stat.rayRefs += raysBack + raysFront; 1132 1132 … … 1717 1717 SimpleRayContainer &rays) 1718 1718 { 1719 int nrays = leaf->rays.size();1719 int nrays = (int)leaf->rays.size(); 1720 1720 for (int i=0; i < numberOfRays; i++) { 1721 1721 // pickup 3 random rays … … 1733 1733 leaf->rays[r3].GetMaxT())); 1734 1734 1735 const float overlap = 0.1 ;1735 const float overlap = 0.1f; 1736 1736 1737 1737 Vector3 origin, direction; … … 1789 1789 VssTreeLeaf *leaf = leaves[i]; 1790 1790 float c = leaf->GetImportance(); 1791 int num = ( c*ratioPerLeaf + 0.5);1791 int num = (int)(c*ratioPerLeaf + 0.5f); 1792 1792 GenerateLeafRays(leaf, num, rays); 1793 1793 } 1794 1794 1795 return rays.size();1795 return (int)rays.size(); 1796 1796 } 1797 1797
Note: See TracChangeset
for help on using the changeset viewer.