Changeset 1004 for GTP/trunk/Lib/Vis/Preprocessing/src/Mesh.cpp
- Timestamp:
- 06/07/06 18:38:29 (18 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
GTP/trunk/Lib/Vis/Preprocessing/src/Mesh.cpp
r1002 r1004 719 719 int TransformedMeshInstance::CastRay(Ray &ray) 720 720 { 721 ray.ApplyTransform(Invert(mWorldTransform)); 722 int res = mMesh->CastRay(ray, this); 723 ray.ApplyTransform(mWorldTransform); 724 725 return res; 721 ray.ApplyTransform(Invert(mWorldTransform)); 722 723 const int res = mMesh->CastRay(ray, this); 724 ray.ApplyTransform(mWorldTransform); 725 726 return res; 727 } 728 729 int TransformedMeshInstance::CastRay(Ray &ray, const vector<int> &faces) 730 { 731 ray.ApplyTransform(Invert(mWorldTransform)); 732 733 const int res = mMesh->CastRayToSelectedFaces(ray, faces, this); 734 ray.ApplyTransform(mWorldTransform); 735 736 return res; 726 737 } 727 738
Note: See TracChangeset
for help on using the changeset viewer.