Ignore:
Timestamp:
02/20/07 13:05:26 (17 years ago)
Author:
mattausch
Message:

runs also under debug mode now

File:
1 edited

Legend:

Unmodified
Added
Removed
  • GTP/trunk/Lib/Vis/Preprocessing/src/RssTree.cpp

    r2119 r2130  
    403403  cout<<"Dirr Bbox = "<<dirBBox<<endl; 
    404404   
    405   stat.rays = rays.size(); 
     405  stat.rays = (int)rays.size(); 
    406406  stat.initialPvsSize = 0; 
    407407  for (int i=0; i < mRoots.size(); i++) { 
     
    862862        info.axis = axis; 
    863863        info.costRatio = 0.5f; // not true but good for speeding up the subdivision at the top levels! 
    864         info.raysBack = info.raysFront = leaf->rays.size()/2; 
     864        info.raysBack = info.raysFront = (int)leaf->rays.size()/2; 
    865865        return; 
    866866  } 
     
    953953 
    954954  currInfo.raysBack = 0; 
    955   currInfo.raysFront = leaf->rays.size(); 
     955  currInfo.raysFront = (int)leaf->rays.size(); 
    956956   
    957957  currInfo.pvsBack = 0; 
     
    11351135  splitCandidates->clear(); 
    11361136   
    1137   int requestedSize = 2*(node->rays.size()); 
     1137  int requestedSize = 2*((int)node->rays.size()); 
    11381138  // creates a sorted split candidates array 
    11391139  if (splitCandidates->capacity() > 500000 && 
     
    11951195  } 
    11961196 
    1197   if ( (int)(leaf->rays.size()) > stat.maxRayRefs) 
    1198     stat.maxRayRefs = leaf->rays.size(); 
     1197  if ((int)leaf->rays.size() > stat.maxRayRefs) 
     1198    stat.maxRayRefs = (int)leaf->rays.size(); 
    11991199 
    12001200} 
     
    13211321  // update stats 
    13221322  stat.rayRefs -= (int)leaf->rays.size(); 
    1323   stat.rayRefs += back->rays.size() + front->rays.size(); 
     1323  stat.rayRefs += (int)(back->rays.size() + front->rays.size()); 
    13241324 
    13251325   
     
    14611461  Debug<<"done."<<endl<<flush; 
    14621462 
    1463   stat.rayRefs += add.size() - remove.size(); 
     1463  stat.rayRefs += (int)add.size() - (int)remove.size(); 
    14641464 
    14651465  Debug<<"Updating statistics..."<<endl<<flush; 
     
    18171817        } 
    18181818  } 
    1819   return pvs.size(); 
     1819  return (int)pvs.size(); 
    18201820} 
    18211821 
     
    20212021                                          ) 
    20222022{ 
    2023   int nrays = leaf->rays.size(); 
     2023  int nrays = (int)leaf->rays.size(); 
    20242024 
    20252025  if (nrays == 2) { 
     
    20402040 
    20412041  if (r1 == r2) 
    2042         r2 = (r1+1)%leaf->rays.size(); 
     2042        r2 = (r1+1)%(int)leaf->rays.size(); 
    20432043 
    20442044#else 
     
    21582158  int indices[3]; 
    21592159 
    2160   int size = rays.size(); 
     2160  int size = (int)rays.size(); 
    21612161  // use russian roulete selection for the tripple 
    21622162  // number of free positions for the bullet 
     
    22302230        for (; ri != rays.end(); ++ri, ++rayIndex) { 
    22312231          RssTreeNode::RayInfo *ray = *ri; 
    2232           int tries = rays.size(); 
     2232          int tries = (int)rays.size(); 
    22332233          for (int i = 0; i < tries; i++) { 
    22342234                int r1, r2, r3; 
     
    26482648  } 
    26492649   
    2650   return rays.size(); 
     2650  return (int)rays.size(); 
    26512651   
    26522652} 
Note: See TracChangeset for help on using the changeset viewer.