Changeset 1302 for GTP/trunk/Lib/Vis/Preprocessing/src/RssPreprocessor.cpp
- Timestamp:
- 08/30/06 21:54:49 (18 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
GTP/trunk/Lib/Vis/Preprocessing/src/RssPreprocessor.cpp
r1299 r1302 521 521 // use a small box outside of the scene 522 522 box.Scale(Vector3(0.1f,0.5f,0.5f)); 523 box.Translate(Vector3(Magnitude(mKdTree->GetBox().Size())*0.5 , 0, 0));523 box.Translate(Vector3(Magnitude(mKdTree->GetBox().Size())*0.5f, 0, 0)); 524 524 } else { 525 525 float s = box.Size(0); … … 692 692 GenerateRays(mRssSamplesPerPass*ratios[0], RSS_BASED_DISTRIBUTION, rays); 693 693 694 rays.NormalizePdf(( int)rays.size());694 rays.NormalizePdf((float)rays.size()); 695 695 696 696 CastRays(rays, tmpVssRays); … … 702 702 #endif 703 703 times[0] = TimeDiff(t1, GetTime()); 704 nrays[0] = rays.size();704 nrays[0] = (int)rays.size(); 705 705 706 706 mStats<<"#RssRelContrib"<<endl<<contributions[0]/nrays[0]<<endl; … … 713 713 GenerateRays(mRssSamplesPerPass*ratios[1], SPATIAL_BOX_BASED_DISTRIBUTION, rays); 714 714 CastRays(rays, tmpVssRays); 715 castRays += rays.size();715 castRays += (int)rays.size(); 716 716 #if ADD_RAYS_IN_PLACE 717 717 contributions[1] = mViewCellsManager->ComputeSampleContributions(tmpVssRays, true, false); … … 720 720 #endif 721 721 times[1] = TimeDiff(t1, GetTime()); 722 nrays[1] = rays.size();722 nrays[1] = (int)rays.size(); 723 723 724 724 mStats<<"#SpatialRelContrib"<<endl<<contributions[1]/nrays[1]<<endl; … … 735 735 GenerateRays(mRssSamplesPerPass*ratios[2], DIRECTION_BASED_DISTRIBUTION, rays); 736 736 CastRays(rays, tmpVssRays); 737 castRays += rays.size();737 castRays += (int)rays.size(); 738 738 #if ADD_RAYS_IN_PLACE 739 739 contributions[2] = mViewCellsManager->ComputeSampleContributions(tmpVssRays, true, false); … … 742 742 #endif 743 743 times[2] = TimeDiff(t1, GetTime()); 744 nrays[2] = rays.size();744 nrays[2] = (int)rays.size(); 745 745 746 746 mStats<<"#DirectionalRelContrib"<<endl<<contributions[2]/nrays[2]<<endl; … … 790 790 CastRays(rays, vssRays); 791 791 cout<<"done."<<endl; 792 castRays += rays.size();792 castRays += (int)rays.size(); 793 793 if (mUseViewcells) { 794 794 /// compute view cell contribution of rays
Note: See TracChangeset
for help on using the changeset viewer.