Ignore:
Timestamp:
01/18/07 11:44:46 (17 years ago)
Author:
mattausch
Message:
 
File:
1 edited

Legend:

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

    r1981 r1990  
    212212  int nearestFace = -1; 
    213213   
    214   if (ray.GetType() == Ray::LOCAL_RAY && ray.intersections.size()) 
     214  if (ray.GetType() == Ray::LOCAL_RAY && !ray.intersections.empty()) 
    215215    nearestT = ray.intersections[0].mT; 
    216216 
     
    230230   
    231231  if ( hits && ray.GetType() == Ray::LOCAL_RAY ) { 
    232     if (ray.intersections.size()) 
     232    if (!ray.intersections.empty()) 
    233233      ray.intersections[0] = Ray::Intersection(nearestT, 
    234                                                                                                                                                                                         nearestNormal, 
    235                                                                                                                                                                                         instance, 
    236                                                                                                                                                                                         nearestFace); 
     234                                                                                          nearestNormal, 
     235                                                                                          instance, 
     236                                                                                          nearestFace); 
    237237    else 
    238238      ray.intersections.push_back(Ray::Intersection(nearestT, 
    239                                                                                                                                                                                                                 nearestNormal, 
    240                                                                                                                                                                                                                 instance, 
    241                                                                                                                                                                                                                 nearestFace)); 
     239                                                                                                        nearestNormal, 
     240                                                                                                        instance, 
     241                                                                                                        nearestFace)); 
    242242  } 
    243243   
     
    758758{ 
    759759  int res = mMesh->CastRay(ray, this); 
     760 
    760761  return res; 
    761762} 
Note: See TracChangeset for help on using the changeset viewer.