Changeset 1715 for GTP/trunk/Lib/Vis/Preprocessing/src/AxisAlignedBox3.cpp
- Timestamp:
- 11/06/06 20:47:06 (18 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
GTP/trunk/Lib/Vis/Preprocessing/src/AxisAlignedBox3.cpp
r1581 r1715 8 8 #include "Polygon3.h" 9 9 #include "Mesh.h" 10 #include "Halton.h" 10 11 11 12 namespace GtpVisibilityPreprocessor { … … 2259 2260 } 2260 2261 2261 } 2262 Vector3 2263 AxisAlignedBox3::GetRandomPoint() const 2264 { 2265 Vector3 size = Size(); 2266 2267 #if 0 2268 static HaltonSequence halton; 2269 2270 halton.GenerateNext(); 2271 2272 return mMin + size*Vector3(halton.GetNumber(1), 2273 halton.GetNumber(2), 2274 halton.GetNumber(3)); 2275 2276 #else 2277 return mMin + Vector3(RandomValue(0.0f, size.x), 2278 RandomValue(0.0f, size.y), 2279 RandomValue(0.0f, size.z)); 2280 #endif 2281 } 2282 2283 } 2284
Note: See TracChangeset
for help on using the changeset viewer.