Ignore:
Timestamp:
12/08/06 17:10:14 (18 years ago)
Author:
bittner
Message:

merge, global lines, rss sampling updates

File:
1 edited

Legend:

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

    r1824 r1867  
    22752275  halton.GenerateNext(); 
    22762276   
    2277   return mMin + size*Vector3(halton.GetNumber(1), 
    2278                                                          halton.GetNumber(2), 
    2279                                                          halton.GetNumber(3)); 
    2280  
     2277  return GetRandomPoint(Vector3(halton.GetNumber(1), 
     2278                                                                halton.GetNumber(2), 
     2279                                                                halton.GetNumber(3))); 
     2280   
    22812281#else 
    2282   return mMin + Vector3(RandomValue(0.0f, size.x), 
    2283                                                 RandomValue(0.0f, size.y), 
    2284                                                 RandomValue(0.0f, size.z)); 
     2282  return GetRandomPoint(Vector3(RandomValue(0.0f, 1.0f), 
     2283                                                                RandomValue(0.0f, 1.0f), 
     2284                                                                RandomValue(0.0f, 1.0f))); 
    22852285#endif 
    22862286} 
    22872287 
     2288Vector3 
     2289AxisAlignedBox3::GetRandomPoint(const Vector3 &r) const 
     2290{ 
     2291  return mMin + Size()*r; 
     2292} 
    22882293 
    22892294Vector3 AxisAlignedBox3::GetRandomSurfacePoint() const 
Note: See TracChangeset for help on using the changeset viewer.