Changeset 2342 for GTP/trunk/Lib/Vis/Preprocessing/src/ViewCell.cpp
- Timestamp:
- 05/02/07 17:28:26 (17 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
GTP/trunk/Lib/Vis/Preprocessing/src/ViewCell.cpp
r2332 r2342 34 34 myless<vector<ViewCell *>::value_type> > TraversalQueue; 35 35 36 int ViewCell::sMailId = 10000;//2147483647; 37 int ViewCell::sReservedMailboxes = 1; 38 36 int ViewCell::sMailId = 10000;//2147483647; 37 int ViewCell::sReservedMailboxes = 1; 39 38 40 39 float MergeCandidate::sRenderCostWeight = 0; … … 1305 1304 { 1306 1305 const float penalty = 1307 EvalPvsPenalty(Get PvsCost(vc), lower, upper);1306 EvalPvsPenalty(GetTrianglesInPvs(vc), lower, upper); 1308 1307 1309 1308 return (mAvgRenderCost - penalty) * (mAvgRenderCost - penalty) / … … 1323 1322 if (1) 1324 1323 { 1325 const float penalty = EvalPvsPenalty(Get PvsCost(vc), lower, upper);1324 const float penalty = EvalPvsPenalty(GetTrianglesInPvs(vc), lower, upper); 1326 1325 return fabs(mAvgRenderCost - penalty) / (float)mNumActiveViewCells; 1327 1326 } … … 1515 1514 const float vol = box.GetVolume(); 1516 1515 1517 const float rootPvs = Get PvsCost(mRoot);1516 const float rootPvs = GetTrianglesInPvs(mRoot); 1518 1517 const int rootEntries = GetPvsEntries(mRoot); 1519 1518 … … 1550 1549 ViewCellInterior *interior = static_cast<ViewCellInterior *>(vc); 1551 1550 1552 const float parentCost = Get PvsCost(interior);1551 const float parentCost = GetTrianglesInPvs(interior); 1553 1552 const int parentPvsEntries = GetPvsEntries(interior); 1554 1553 const float parentExpCost = (float)parentCost * interior->GetVolume(); … … 1566 1565 ViewCell *vc = *it; 1567 1566 1568 const float pvsCost = Get PvsCost(vc);1567 const float pvsCost = GetTrianglesInPvs(vc); 1569 1568 const int pvsEntries = GetPvsEntries(vc); 1570 1569 … … 1953 1952 1954 1953 1955 float ViewCellsTree::Get PvsCost(ViewCell *vc) const1954 float ViewCellsTree::GetTrianglesInPvs(ViewCell *vc) const 1956 1955 { 1957 1956 float pvsCost = 0; … … 2159 2158 2160 2159 const float vol = mViewCellsManager->GetViewSpaceBox().GetVolume(); 2161 const float rootPvs = Get PvsCost(mRoot);2160 const float rootPvs = GetTrianglesInPvs(mRoot); 2162 2161 2163 2162 float totalRenderCost; … … 2182 2181 ViewCellInterior *interior = static_cast<ViewCellInterior *>(vc); 2183 2182 2184 const float parentCost = Get PvsCost(interior);2183 const float parentCost = GetTrianglesInPvs(interior); 2185 2184 const float parentExpCost = parentCost * interior->GetVolume(); 2186 2185 … … 2196 2195 ViewCell *vc = *it; 2197 2196 2198 const float pvsCost = Get PvsCost(vc);2197 const float pvsCost = GetTrianglesInPvs(vc); 2199 2198 2200 2199 childExpCost += (float) pvsCost * vc->GetVolume(); … … 2248 2247 ViewCellInterior *interior = static_cast<ViewCellInterior *>(vc); 2249 2248 2250 const float parentPvsCost = Get PvsCost(interior);2249 const float parentPvsCost = GetTrianglesInPvs(interior); 2251 2250 const int parentPvsEntries = GetPvsEntries(interior); 2252 2251 const float parentExpCost = (float)parentPvsCost * interior->GetVolume(); … … 2288 2287 ++ vcStat.viewCells; 2289 2288 2290 const float pvsCost = Get PvsCost(vc);2289 const float pvsCost = GetTrianglesInPvs(vc); 2291 2290 2292 2291 vcStat.pvsCost += pvsCost;
Note: See TracChangeset
for help on using the changeset viewer.