Ignore:
Timestamp:
12/30/05 12:08:15 (19 years ago)
Author:
mattausch
Message:

changed castlinesegment of vspbpstree
changed rayinfo ray classification for bsp tree
implemented shuffling

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/VUT/GtpVisibilityPreprocessor/src/Mesh.cpp

    r469 r485  
    271271Mesh::GetRandomSurfacePoint(Vector3 &point, Vector3 &normal) 
    272272{ 
    273   int faceIndex = RandomValue(0, mFaces.size()-1); 
     273  int faceIndex = (int)RandomValue(0, (Real)((int)mFaces.size()-1)); 
    274274   
    275275  // assume the face is convex and generate a convex combination 
     
    298298{ 
    299299  Plane3 plane; 
    300   int faceIndex = RandomValue(0, mFaces.size()-1); 
     300  int faceIndex = (int)RandomValue(0, (Real)((int)mFaces.size()-1)); 
    301301        int tries; 
    302302  for (tries = 0; tries < maxTries; tries++) { 
Note: See TracChangeset for help on using the changeset viewer.