Ignore:
Timestamp:
05/21/08 01:18:40 (16 years ago)
Author:
mattausch
Message:

fixed several errors

File:
1 edited

Legend:

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

    r2686 r2691  
    23722372} 
    23732373 
     2374 
     2375void AxisAlignedBox3::GetRandomEdgePoint(Vector3 &point, 
     2376                                                                                 Vector3 &normal) 
     2377{ 
     2378        // get random edge 
     2379        const int idx = Random(12);  
     2380        Vector3 a, b; 
     2381        GetEdge(idx, &a, &b); 
     2382         
     2383        const float w = RandomValue(0.0f, 1.0f); 
     2384 
     2385        point = a * w + b * (1.0f - w); 
     2386 
     2387        // TODO 
     2388        normal = Vector3(0); 
     2389} 
     2390 
     2391 
    23742392Vector3 
    23752393AxisAlignedBox3::GetUniformRandomSurfacePoint() const 
Note: See TracChangeset for help on using the changeset viewer.