- Timestamp:
- 02/16/06 10:30:24 (19 years ago)
- Location:
- GTP/trunk/Lib/Vis/Preprocessing
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
GTP/trunk/Lib/Vis/Preprocessing/scripts/default.env
r645 r646 414 414 Termination { 415 415 # parameters used for autopartition 416 minRays 10417 minPolygons -1416 minRays -1 417 minPolygons 1 418 418 maxDepth 30 419 419 minPvs -1 420 minProbability 0.00 1420 minProbability 0.00001 421 421 maxRayContribution 9999 422 maxViewCells 1000422 maxViewCells 5000 423 423 424 424 # used for pvs criterium -
GTP/trunk/Lib/Vis/Preprocessing/src/ViewCellBsp.cpp
r645 r646 331 331 case Polygon3::COINCIDENT: 332 332 coincident.push_back(poly); 333 Debug << "!!!Coincident: " << poly->GetSupportingPlane() << endl; 333 334 break; 334 335 case Polygon3::FRONT_SIDE: 335 336 frontPolys.push_back(poly); 337 Debug << "!!!front: " << poly->GetSupportingPlane() << endl; 336 338 break; 337 339 case Polygon3::BACK_SIDE: 340 Debug << "!!!back: " << poly->GetSupportingPlane() << endl; 338 341 backPolys.push_back(poly); 339 342 break; … … 984 987 Debug << "cost ratio: " << (cFront + cBack) / cData << endl; 985 988 986 if ((cFront + cBack) / cData > 1) 989 if (((cFront + cBack) / cData > 1) || (tFrontData.mProbability == 0) || (tBackData.mProbability == 0)) 990 { 987 991 Debug << "ERROR!!" << endl; 992 993 vector<Plane3> halfSpaces; 994 ExtractHalfSpaces(interior, halfSpaces); 995 996 for (int i = 0; i < (int)halfSpaces.size(); ++ i) 997 Debug << halfSpaces[i] << endl; 998 999 Debug << "geom:\n" << *tData.mGeometry << endl; 1000 Debug << "fgeom:\n" << *tFrontData.mGeometry << endl; 1001 Debug << "bgeom:\n" << *tBackData.mGeometry << endl; 1002 } 988 1003 989 1004 float costDecr = (cFront + cBack - cData) / mBox.GetVolume(); … … 1073 1088 1074 1089 1075 #ifdef _DEBUG1090 //#ifdef _DEBUG 1076 1091 Debug << interior << endl; 1077 #endif 1092 Debug << interior->GetPlane() << endl; 1093 //#endif 1078 1094 1079 1095 … … 1103 1119 interior->mPlane, 1104 1120 mBox, 1105 0.000000000001);1106 //mEpsilon);1121 //0.000000000001); 1122 mEpsilon); 1107 1123 1108 1124 … … 1298 1314 Plane3 BspTree::SelectPlane(BspLeaf *leaf, BspTraversalData &data) 1299 1315 { 1300 if (data.mPolygons->empty() && data.mRays->empty()) 1316 if ((!mMaxPolyCandidates || data.mPolygons->empty()) && 1317 (!mMaxRayCandidates || data.mRays->empty())) 1301 1318 { 1302 1319 Debug << "Warning: No autopartition polygon candidate available\n"; … … 1489 1506 Debug << "plane lowest cost: " << lowestCost << endl; 1490 1507 #endif 1508 Debug << "choosen plane: " << bestPlane << endl; 1491 1509 1492 1510 return bestPlane; -
GTP/trunk/Lib/Vis/Preprocessing/src/ViewCellBsp.h
r611 r646 72 72 */ 73 73 PolygonContainer mPolys; 74 75 friend ostream &operator<<(ostream &s, const BspNodeGeometry &a) 76 { 77 PolygonContainer::const_iterator it, it_end = a.mPolys.end(); 78 79 for (it = a.mPolys.begin(); it != it_end; ++ it) 80 s << *(*it) << endl; 81 return s << endl; 82 } 83 74 84 }; 75 85 … … 275 285 /** BSP interior node implementation 276 286 */ 277 class BspInterior 287 class BspInterior: public BspNode 278 288 { 279 289 friend class BspTree;
Note: See TracChangeset
for help on using the changeset viewer.