Changeset 1765 for GTP/trunk/Lib/Vis/Preprocessing/src/Preprocessor.cpp
- Timestamp:
- 11/18/06 23:15:55 (18 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
GTP/trunk/Lib/Vis/Preprocessing/src/Preprocessor.cpp
r1757 r1765 934 934 } 935 935 936 boolPreprocessor::GenerateRays(const int number,937 938 936 int Preprocessor::GenerateRays(const int number, 937 const int sampleType, 938 SimpleRayContainer &rays) 939 939 { 940 940 const int startSize = (int)rays.size(); … … 943 943 if (!strategy) 944 944 { 945 return false; 946 } 947 948 for (int i=0; (int)rays.size() - startSize < number; ++ i) 945 return 0; 946 } 947 948 int castRays = 0; 949 950 for (int i = 0; (int)rays.size() - startSize < number; ++ i) 949 951 { 950 952 SimpleRay newRay; … … 954 956 #if 1 955 957 rays.AddRay(newRay); 958 ++ castRays; 956 959 #else 957 960 GenerateRayBundle(rays, newRay, 16, 0); 961 castRays += 16; 958 962 #endif 959 963 } … … 961 965 962 966 delete strategy; 963 return true;967 return castRays; 964 968 } 965 969
Note: See TracChangeset
for help on using the changeset viewer.