Changeset 485 for trunk/VUT/GtpVisibilityPreprocessor/src/Mesh.cpp
- Timestamp:
- 12/30/05 12:08:15 (19 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/VUT/GtpVisibilityPreprocessor/src/Mesh.cpp
r469 r485 271 271 Mesh::GetRandomSurfacePoint(Vector3 &point, Vector3 &normal) 272 272 { 273 int faceIndex = RandomValue(0, mFaces.size()-1);273 int faceIndex = (int)RandomValue(0, (Real)((int)mFaces.size()-1)); 274 274 275 275 // assume the face is convex and generate a convex combination … … 298 298 { 299 299 Plane3 plane; 300 int faceIndex = RandomValue(0, mFaces.size()-1);300 int faceIndex = (int)RandomValue(0, (Real)((int)mFaces.size()-1)); 301 301 int tries; 302 302 for (tries = 0; tries < maxTries; tries++) {
Note: See TracChangeset
for help on using the changeset viewer.