Changeset 1444 for GTP/trunk/Lib/Vis/Preprocessing/src/VspTree.cpp
- Timestamp:
- 09/21/06 12:16:04 (18 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
GTP/trunk/Lib/Vis/Preprocessing/src/VspTree.cpp
r1421 r1444 62 62 { 63 63 MailablePvsData *vdata = obj->mViewCellPvs.Find(vc); 64 //return false; 64 65 65 if (vdata) 66 66 { … … 128 128 129 129 app << "#N_RAYS (number of rays / leaf)\n" << AvgRays() << endl; 130 //app << "#N_PVS: " << pvs << endl; 131 132 //app << "#N_MAXOBJECTREFS ( Max number of object refs / leaf )\n" << maxObjectRefs << "\n"; 130 133 131 134 132 app << "========== END OF VspTree statistics ==========\n"; … … 202 200 mTreeValid = v; 203 201 } 202 204 203 205 204 … … 372 371 mHierarchyManager(NULL) 373 372 { 373 mLocalSubdivisionCandidates = new vector<SortableEntry>; 374 374 375 bool randomize = false; 375 376 Environment::GetSingleton()->GetBoolValue("VspTree.Construction.randomize", randomize); … … 377 378 Randomize(); // initialise random generator for heuristics 378 379 380 char subdivisionStatsLog[100]; 381 Environment::GetSingleton()->GetStringValue("VspTree.subdivisionStats", subdivisionStatsLog); 382 mSubdivisionStats.open(subdivisionStatsLog); 383 384 ///////////// 379 385 //-- termination criteria for autopartition 386 380 387 Environment::GetSingleton()->GetIntValue("VspTree.Termination.maxDepth", mTermMaxDepth); 381 388 Environment::GetSingleton()->GetIntValue("VspTree.Termination.minPvs", mTermMinPvs); … … 386 393 Environment::GetSingleton()->GetIntValue("VspTree.Termination.missTolerance", mTermMissTolerance); 387 394 Environment::GetSingleton()->GetIntValue("VspTree.Termination.maxViewCells", mMaxViewCells); 388 389 //-- max cost ratio for early tree termination 395 // max cost ratio for early tree termination 390 396 Environment::GetSingleton()->GetFloatValue("VspTree.Termination.maxCostRatio", mTermMaxCostRatio); 391 397 … … 393 399 Environment::GetSingleton()->GetIntValue("VspTree.Termination.globalCostMissTolerance", mTermGlobalCostMissTolerance); 394 400 401 Environment::GetSingleton()->GetFloatValue("VspTree.maxStaticMemory", mMaxMemory); 402 403 404 ////////////// 395 405 //-- factors for bsp tree split plane heuristics 406 396 407 Environment::GetSingleton()->GetFloatValue("VspTree.Termination.ct_div_ci", mCtDivCi); 397 398 //-- partition criteria399 408 Environment::GetSingleton()->GetFloatValue("VspTree.Construction.epsilon", mEpsilon); 409 Environment::GetSingleton()->GetFloatValue("VspTree.Construction.minBand", mMinBand); 410 Environment::GetSingleton()->GetFloatValue("VspTree.Construction.maxBand", mMaxBand); 411 Environment::GetSingleton()->GetIntValue("VspTree.maxTests", mMaxTests); 412 400 413 Environment::GetSingleton()->GetFloatValue("VspTree.Construction.renderCostDecreaseWeight", mRenderCostDecreaseWeight); 401 414 402 415 // if only the driving axis is used for axis aligned split 403 416 Environment::GetSingleton()->GetBoolValue("VspTree.splitUseOnlyDrivingAxis", mOnlyDrivingAxis); 404 405 Environment::GetSingleton()->GetIntValue("VspTree.maxTests", mMaxTests);406 Environment::GetSingleton()->GetFloatValue("VspTree.maxStaticMemory", mMaxMemory);407 408 417 Environment::GetSingleton()->GetBoolValue("VspTree.useCostHeuristics", mUseCostHeuristics); 409 418 Environment::GetSingleton()->GetBoolValue("VspTree.simulateOctree", mCirculatingAxis); 410 411 //Environment::GetSingleton()->GetBoolValue("VspTree.useKdPvsForHeuristics", mUseKdPvsForHeuristics); 412 413 char subdivisionStatsLog[100]; 414 Environment::GetSingleton()->GetStringValue("VspTree.subdivisionStats", subdivisionStatsLog); 415 mSubdivisionStats.open(subdivisionStatsLog); 416 417 Environment::GetSingleton()->GetFloatValue("VspTree.Construction.minBand", mMinBand); 418 Environment::GetSingleton()->GetFloatValue("VspTree.Construction.maxBand", mMaxBand); 419 420 419 420 421 ////////////// 421 422 //-- debug output 422 423 … … 445 446 Debug << "maxband: " << mMaxBand << endl; 446 447 447 mLocalSubdivisionCandidates = new vector<SortableEntry>;448 449 448 Debug << endl; 450 449 } … … 565 564 ); 566 565 567 if ( 0&& terminationCriteriaMet)566 if (1 && terminationCriteriaMet) 568 567 { 569 568 Debug << "vsp global termination criteria met:" << endl;
Note: See TracChangeset
for help on using the changeset viewer.