Changeset 694 for GTP/trunk/Lib/Vis/Preprocessing/src/VspBspTree.cpp
- Timestamp:
- 03/15/06 08:59:33 (18 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
GTP/trunk/Lib/Vis/Preprocessing/src/VspBspTree.cpp
r685 r694 1028 1028 1029 1029 if (frontData.mProbability < -0.00001) 1030 Debug << " here2error f: " << frontData.mProbability << endl;1030 Debug << "fatal error f: " << frontData.mProbability << endl; 1031 1031 if (backData.mProbability < -0.00001) 1032 Debug << " here2error b: " << backData.mProbability << endl;1032 Debug << "fatal error b: " << backData.mProbability << endl; 1033 1033 1034 1034 // clamp because of precision issues … … 2903 2903 } 2904 2904 2905 2905 2906 BspLeaf *VspBspTree::GetRandomLeaf(const bool onlyUnmailed) 2906 2907 { … … 2938 2939 } 2939 2940 2941 2940 2942 int VspBspTree::ComputePvsSize(const RayInfoContainer &rays) const 2941 2943 { … … 2970 2972 return pvsSize; 2971 2973 } 2974 2972 2975 2973 2976 float VspBspTree::GetEpsilon() const … … 3039 3042 3040 3043 float t; 3041 //const float thresh = 1 ? 1e-6f : 0.0f; 3042 const float thresh = 0.01f; 3043 3044 const float thresh = 1e-6f; // matt: change this 3045 3044 3046 while (1) 3045 3047 { … … 3072 3074 farChild = in->GetBack(); // plane splits ray 3073 3075 } 3074 else // one of the ray end points on the plane3076 else // one of the ray end points is on the plane 3075 3077 { // NOTE: what to do if ray is coincident with plane? 3076 3078 if (extSide < 0) 3077 3079 node = in->GetBack(); 3078 else 3080 else //if (extSide > 0) 3079 3081 node = in->GetFront(); 3080 3082 //else break; // coincident => count no intersections 3083 3081 3084 continue; // no far child 3082 3085 } … … 3367 3370 3368 3371 vector<BspLeaf *> neighbors; 3369 if ( 0)3372 if (1) 3370 3373 FindNeighbors(leaf, neighbors, true); 3371 3374 else
Note: See TracChangeset
for help on using the changeset viewer.