Changeset 679 for GTP/trunk/Lib/Vis/Preprocessing/src/ViewCellBsp.cpp
- Timestamp:
- 03/07/06 17:35:50 (19 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
GTP/trunk/Lib/Vis/Preprocessing/src/ViewCellBsp.cpp
r678 r679 2989 2989 } 2990 2990 2991 //Debug << "center: " << center << " new " << center / (float)n << endl; 2992 2991 2993 return center / (float)n; 2992 2994 } … … 3013 3015 3014 3016 3015 voidBspNodeGeometry::SplitGeometry(BspNodeGeometry &front,3017 bool BspNodeGeometry::SplitGeometry(BspNodeGeometry &front, 3016 3018 BspNodeGeometry &back, 3017 3019 const Plane3 &splitPlane, … … 3026 3028 3027 3029 //-- new polygon splits all other polygons 3028 for (int i = 0; i < (int)mPolys.size() ; ++ i)3030 for (int i = 0; i < (int)mPolys.size()/* && planePoly*/; ++ i) 3029 3031 { 3030 3032 /// don't use epsilon here to get exact split planes … … 3054 3056 else 3055 3057 { 3058 Debug << "no f! " << endl; 3056 3059 DEL_PTR(frontPoly); 3057 3060 } 3061 3058 3062 if (backPoly->Valid(epsilon)) 3059 3063 { … … 3062 3066 else 3063 3067 { 3068 Debug << "no b! " << endl; 3064 3069 DEL_PTR(backPoly); 3065 3070 } … … 3079 3084 3080 3085 back.Add(new Polygon3(mPolys[i]->mVertices), mPlanes[i]); 3081 //front. mPolys.push_back(CreateReversePolygon(mPolys[i]));3086 //front.Add(CreateReversePolygon(mPolys[i]), mPlanes[i]); 3082 3087 break; 3083 3088 default: … … 3098 3103 front.Add(planePoly->CreateReversePolygon(), reversePlane); 3099 3104 //front.mPolys.push_back(planePoly->CreateReversePolygon()); 3100 } 3105 Debug << "plane poly!" << endl; 3106 } 3107 else 3108 Debug << "no plane poly!" << endl; 3109 3110 return planePoly != NULL; 3101 3111 } 3102 3112 … … 3160 3170 3161 3171 3162 ViewCell * 3163 BspTree::GetViewCell(const Vector3 &point) 3172 ViewCell *BspTree::GetViewCell(const Vector3 &point) 3164 3173 { 3165 3174 if (mRoot == NULL)
Note: See TracChangeset
for help on using the changeset viewer.