Changeset 1294 for GTP/trunk/Lib/Vis/Preprocessing/src/Preprocessor.cpp
- Timestamp:
- 08/29/06 17:34:19 (18 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
GTP/trunk/Lib/Vis/Preprocessing/src/Preprocessor.cpp
r1293 r1294 475 475 } 476 476 477 477 478 HierarchyManager *Preprocessor::CreateHierarchyManager(const char *name) 478 479 { … … 850 851 ) 851 852 { 853 #ifdef GTP_INTERNAL 852 854 VssRay *vssRay = NULL; 853 855 int hits = 0; … … 859 861 860 862 double normal[3]; 861 #ifdef GTP_INTERNAL 863 862 864 hittriangle = mlrtaIntersectAS(&viewPoint.x, 863 865 &direction.x, 864 866 normal, 865 867 dist); 866 #else 867 hittriangle = -1; 868 #endif 868 869 869 if (hittriangle !=-1 ) { 870 870 if (hittriangle >= mFaceParents.size()) … … 881 881 } 882 882 883 883 884 Vector3 dir = -direction; 884 #ifdef GTP_INTERNAL885 885 hittriangle = mlrtaIntersectAS(&viewPoint.x, 886 886 &dir.x, 887 887 normal, 888 888 dist); 889 #else890 hittriangle = -1;891 #endif892 889 893 890 if (hittriangle !=-1 ) { … … 913 910 box 914 911 ); 912 #else 913 return -1; 914 #endif 915 915 } 916 916 … … 929 929 return 0; 930 930 931 #ifdef GTP_INTERNAL 931 932 float pforg[3]; 932 933 float pfdir[3]; … … 936 937 pfdir[0] = direction[0]; pfdir[1] = direction[1]; pfdir[2] = direction[2]; 937 938 938 float dist = 0; 939 #ifdef GTP_INTERNAL 939 float dist; 940 940 const int hittriangle = mlrtaIntersectAS(pforg, pfdir, pfnorm, dist); 941 #else942 const int hittriangle = -1;943 #endif944 941 945 942 if (hittriangle == -1) … … 970 967 } 971 968 } 969 970 #else 971 const int hittriangle = -1; 972 return NULL; 973 #endif 974 975 972 976 973 977 } … … 1330 1334 { 1331 1335 case INTEL_RAYCASTER: { 1332 float dist;1336 1333 1337 int hittriangle; 1338 1339 1340 #ifdef GTP_INTERNAL 1341 float dist; 1334 1342 double n[3]; 1335 1343 1336 #ifdef GTP_INTERNAL1337 1344 hittriangle = mlrtaIntersectAS(&viewPoint.x, 1338 1345 &direction.x, … … 1340 1347 dist); 1341 1348 1342 #else 1343 hittriangle = -1; 1344 #endif 1345 1346 if (hittriangle !=-1 ) { 1349 if (hittriangle !=-1 ) { 1347 1350 if (hittriangle >= mFaceParents.size()) 1348 1351 cerr<<"Warning: traingle index out of range! "<<hittriangle<<endl; … … 1353 1356 } 1354 1357 } 1358 #else 1359 hittriangle = -1; 1360 #endif 1361 1362 1355 1363 break; 1356 1364 }
Note: See TracChangeset
for help on using the changeset viewer.