Changeset 1990 for GTP/trunk/Lib/Vis/Preprocessing/src/Mesh.cpp
- Timestamp:
- 01/18/07 11:44:46 (17 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
GTP/trunk/Lib/Vis/Preprocessing/src/Mesh.cpp
r1981 r1990 212 212 int nearestFace = -1; 213 213 214 if (ray.GetType() == Ray::LOCAL_RAY && ray.intersections.size())214 if (ray.GetType() == Ray::LOCAL_RAY && !ray.intersections.empty()) 215 215 nearestT = ray.intersections[0].mT; 216 216 … … 230 230 231 231 if ( hits && ray.GetType() == Ray::LOCAL_RAY ) { 232 if ( ray.intersections.size())232 if (!ray.intersections.empty()) 233 233 ray.intersections[0] = Ray::Intersection(nearestT, 234 235 236 234 nearestNormal, 235 instance, 236 nearestFace); 237 237 else 238 238 ray.intersections.push_back(Ray::Intersection(nearestT, 239 240 241 239 nearestNormal, 240 instance, 241 nearestFace)); 242 242 } 243 243 … … 758 758 { 759 759 int res = mMesh->CastRay(ray, this); 760 760 761 return res; 761 762 }
Note: See TracChangeset
for help on using the changeset viewer.