Changeset 1772 for GTP/trunk/Lib/Vis/Preprocessing/src/Preprocessor.cpp
- Timestamp:
- 11/20/06 18:44:29 (18 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
GTP/trunk/Lib/Vis/Preprocessing/src/Preprocessor.cpp
r1771 r1772 945 945 SimpleRayContainer &rays) 946 946 { 947 947 return strategy.GenerateSamples(number, rays); 948 948 } 949 949 … … 953 953 SimpleRayContainer &rays) 954 954 { 955 956 957 958 959 960 { 961 962 } 963 955 const int startSize = (int)rays.size(); 956 SamplingStrategy *strategy = GenerateSamplingStrategy(sampleType); 957 int castRays = 0; 958 959 if (!strategy) 960 { 961 return 0; 962 } 963 964 964 #if 1 965 if (!strategy->GenerateSamples(number, rays)) 966 return false; 967 ++ castRays; 965 castRays = strategy->GenerateSamples(number, rays); 968 966 #else 969 970 967 GenerateRayBundle(rays, newRay, 16, 0); 968 castRays += 16; 971 969 #endif 972 973 974 970 971 delete strategy; 972 return castRays; 975 973 } 976 974 … … 994 992 case SamplingStrategy::VIEWCELL_BORDER_BASED_DISTRIBUTION: 995 993 return new ViewCellBorderBasedDistribution(*this); 994 case SamplingStrategy::VIEWSPACE_BORDER_BASED_DISTRIBUTION: 995 return new ViewSpaceBorderBasedDistribution(*this); 996 case SamplingStrategy::REVERSE_VIEWSPACE_BORDER_BASED_DISTRIBUTION: 997 return new ReverseViewSpaceBorderBasedDistribution(*this); 996 998 //case OBJECTS_INTERIOR_DISTRIBUTION: 997 999 // return new ObjectsInteriorDistribution(*this);
Note: See TracChangeset
for help on using the changeset viewer.