Ignore:
Timestamp:
06/09/08 16:35:30 (16 years ago)
Author:
mattausch
Message:
 
File:
1 edited

Legend:

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

    r2744 r2745  
    815815        direction = UniformRandomVector(r[0], r[1]); 
    816816         
    817 ##if 0 
    818         origin = mViewCell->GetBox().GetRandomPoint(); 
    819 #else 
    820         origin = mViewCell->GetBox().GetUniformRandomSurfacePoint(); 
    821  
    822         //origin = mViewCell->GetBox().GetRandomSurfacePoint(); 
    823         //mViewCell->GetRandomEdgePoint(origin, normal); 
    824         //origin = Vector3(680.682, 189.552, -278.177); 
    825  
    826         // move a little bit back to avoid piercing through walls 
    827         // that bound the view cell 
    828         origin -= 0.01f * normal; 
    829 #endif 
    830                  
     817 
     818        if (1) 
     819        { 
     820                origin = mViewCell->GetBox().GetRandomPoint(); 
     821        } 
     822        else 
     823        { 
     824                origin = mViewCell->GetBox().GetUniformRandomSurfacePoint(); 
     825 
     826                //origin = mViewCell->GetBox().GetRandomSurfacePoint(); 
     827                //mViewCell->GetRandomEdgePoint(origin, normal); 
     828                //origin = Vector3(680.682, 189.552, -278.177); 
     829 
     830                // move a little bit back to avoid piercing through walls 
     831                // that bound the view cell 
     832                origin -= 1e-4f * normal; 
     833        } 
    831834 
    832835        static const float pdf = 1.0f; 
Note: See TracChangeset for help on using the changeset viewer.