Ignore:
Timestamp:
10/09/06 16:40:52 (18 years ago)
Author:
mattausch
Message:

fixed bug in TriangleIntersectable::GetRandomSurfacePoint?

File:
1 edited

Legend:

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

    r1576 r1587  
    6262{        
    6363        Vector3 origin, direction;  
    64     const int i = (int)RandomValue(0, (Real)((int)mPreprocessor.mObjects.size() - 1)); 
     64    const int i = (int)RandomValue(0, (Real)mPreprocessor.mObjects.size() - 0.5f); 
    6565        Intersectable *object = mPreprocessor.mObjects[i]; 
    6666         
Note: See TracChangeset for help on using the changeset viewer.