Changeset 424 for trunk/VUT/GtpVisibilityPreprocessor/src/ViewCellBsp.cpp
- Timestamp:
- 11/20/05 22:57:44 (19 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/VUT/GtpVisibilityPreprocessor/src/ViewCellBsp.cpp
r423 r424 274 274 mRoot(NULL), 275 275 mGenerateViewCells(false), 276 //-- factors for bsp tree split plane heuristics277 mVerticalSplitsFactor(1.0f),278 mLargestPolyAreaFactor(1.0f),279 mBlockedRaysFactor(1.0f),280 mLeastRaySplitsFactor(1.0f),281 mBalancedRaysFactor(1.0f),282 mPvsFactor(1.0f),283 mLeastSplitsFactor(1.0f),284 mBalancedPolysFactor(1.0f),285 mBalancedViewCellsFactor(1.0f),286 //------------------------------------287 276 mStoreLeavesWithRays(false), 288 277 mPvsUseArea(true) … … 299 288 environment->GetFloatValue("BspTree.Termination.maxAccRayLenght", mTermMaxAccRayLength); 300 289 290 //-- factors for bsp tree split plane heuristics 291 environment->GetFloatValue("BspTree.Factor.verticalSplits", mVerticalSplitsFactor); 292 environment->GetFloatValue("BspTree.Factor.largestPolyArea", mLargestPolyAreaFactor); 293 environment->GetFloatValue("BspTree.Factor.blockedRays", mBlockedRaysFactor); 294 environment->GetFloatValue("BspTree.Factor.leastRaySplits", mLeastRaySplitsFactor); 295 environment->GetFloatValue("BspTree.Factor.balancedRays", mBalancedRaysFactor); 296 environment->GetFloatValue("BspTree.Factor.pvsFactor", mPvsFactor); 297 environment->GetFloatValue("BspTree.Factor.leastSplits" , mLeastSplitsFactor); 298 environment->GetFloatValue("BspTree.Factor.balancedPolys", mBalancedPolysFactor); 299 environment->GetFloatValue("BspTree.Factor.balancedViewCells", mBalancedViewCellsFactor); 300 environment->GetFloatValue("BspTree.Termination.ct_div_ci", mCtDivCi); 301 301 302 //-- termination criteria for axis aligned split 302 environment->GetFloatValue("BspTree.Termination.AxisAligned.ct_div_ci", m CtDivCi);303 environment->GetFloatValue("BspTree.Termination.AxisAligned.ct_div_ci", mAaCtDivCi); 303 304 environment->GetFloatValue("BspTree.Termination.AxisAligned.maxCostRatio", mMaxCostRatio); 304 305 environment->GetIntValue("BspTree.Termination.AxisAligned.maxPolys", … … 1034 1035 1035 1036 float oldCost = (float)polys.size(); 1036 float newCost = m CtDivCi + minSum / boxArea;1037 float newCost = mAaCtDivCi + minSum / boxArea; 1037 1038 float ratio = newCost / oldCost; 1038 1039 … … 1491 1492 1492 1493 if (!mPvsUseArea) // use front and back cell areas to approximate volume 1493 { 1494 { 1494 1495 float len = Distance(entP, extP); 1495 1496 pOverall += len;
Note: See TracChangeset
for help on using the changeset viewer.