Ignore:
Timestamp:
11/06/06 20:47:06 (18 years ago)
Author:
bittner
Message:

new visibility filter support

File:
1 edited

Legend:

Unmodified
Added
Removed
  • GTP/trunk/Lib/Vis/Preprocessing/src/AxisAlignedBox3.cpp

    r1581 r1715  
    88#include "Polygon3.h" 
    99#include "Mesh.h" 
     10#include "Halton.h" 
    1011 
    1112namespace GtpVisibilityPreprocessor { 
     
    22592260} 
    22602261 
    2261 } 
     2262Vector3 
     2263AxisAlignedBox3::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.