- Timestamp:
- 11/07/05 23:53:17 (19 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/VUT/GtpVisibilityPreprocessor/src/SamplingPreprocessor.cpp
r386 r388 833 833 ViewCell::NewMail(); 834 834 835 //-- some rays for output 836 const int raysOut = min((int)mSampleRays.size(), 20000); 837 vector<Ray *> vcRays[leafOut]; 838 835 839 if (0){ 836 840 //-- some random view cells and rays for output 837 const int raysOut = min((int)mSampleRays.size(), 20000);838 vector<Ray *> vcRays[leafOut];839 841 vector<BspLeaf *> bspLeaves; 842 840 843 for (int i = 0; i < leafOut; ++ i) 841 844 bspLeaves.push_back(mBspTree->GetRandomLeaf()); … … 941 944 cout << "creating output for view cell " << i << " ... "; 942 945 943 Intersectable::NewMail(); 944 946 Intersectable::NewMail(); 945 947 BspViewCell *vc = dynamic_cast<BspViewCell *>(viewCells[i]); 948 949 cout << "creating output for view cell " << i << " ... "; 950 // check whether we can add the current ray to the output rays 951 for (int k = 0; k < raysOut; ++ k) 952 { 953 Ray *ray = mSampleRays[k]; 954 955 for (int j = 0; j < (int)ray->bspIntersections.size(); ++ j) 956 { 957 BspLeaf *leaf = ray->bspIntersections[j].mLeaf; 958 959 if (vc == leaf->GetViewCell()) 960 { 961 vcRays[i].push_back(ray); 962 } 963 } 964 } 946 965 947 966 //bspLeaves[j]->Mail();
Note: See TracChangeset
for help on using the changeset viewer.