Changeset 2172 for GTP/trunk/Lib/Vis/Preprocessing/src/VssRay.cpp
- Timestamp:
- 02/28/07 15:33:04 (17 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
GTP/trunk/Lib/Vis/Preprocessing/src/VssRay.cpp
r2116 r2172 1 1 #include "VssRay.h" 2 2 #include "AxisAlignedBox3.h" 3 #include "Ray.h" 4 3 #include "SamplingStrategy.h" 5 4 6 5 namespace GtpVisibilityPreprocessor { … … 340 339 VssRayContainer::SelectRays(const int number, 341 340 VssRayContainer &selected, 342 const bool copy) const 341 const bool copy 342 ) const 343 343 { 344 344 float p = number/(float)size(); … … 346 346 347 347 for (; it != end(); it++) 348 if (Random(1.0f) < p) { 348 // temporarily only take mutation rays! 349 if ((*it)->mDistribution == SamplingStrategy::MUTATION_BASED_DISTRIBUTION && Random(1.0f) < p) { 349 350 if (!copy) 350 351 selected.push_back(*it);
Note: See TracChangeset
for help on using the changeset viewer.