Ignore:
Timestamp:
01/05/07 16:29:54 (18 years ago)
Author:
bittner
Message:

tmp commit

File:
1 edited

Legend:

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

    r1931 r1942  
    22992299{ 
    23002300  Vector3 origin = sbox.GetPoint(Vector3(params[0], params[1], params[2])); 
    2301  
    23022301  Vector3 dirVector = sDirBBox.GetPoint(Vector3(params[3], params[4], 0.0f)); 
    2303  
    23042302  Vector3 direction = VssRay::GetInvDirParam(dirVector.x, dirVector.y); 
    23052303   
     
    23082306  float minT, maxT; 
    23092307   
    2310   float boxSize = Magnitude(sbox.Size()); 
    23112308  // compute interection of the ray with the box 
    23122309#if 1 
    23132310  if (sbox.ComputeMinMaxT(origin, direction, &minT, &maxT) && minT < maxT) 
    2314         dist = (maxT + 0.0f*boxSize); 
     2311        dist = (maxT + Limits::Small); 
    23152312#else 
     2313  float boxSize = Magnitude(sbox.Size()); 
    23162314  dist = 0.5f*boxSize; 
    23172315#endif 
    23182316   
    23192317  origin += direction*dist; 
    2320  
     2318   
    23212319  //Debug<<"dir vector.x="<<dirVector.x<<"direction'.x="<<atan2(direction.x, direction.y)<<endl; 
    23222320  rays.push_back(SimpleRay(origin, 
     
    27652763          sumContributions += c1; 
    27662764          if (c1 > maxContribution) 
    2767                         maxContribution = c1; 
     2765                maxContribution = c1; 
    27682766           
    27692767          //$$ 20.7. changed to sqr to pronouce higher contribution so that 
     
    28062804                pow(((weightAbsContributions*sumContributions + 
    28072805                          (1.0f - weightAbsContributions)*sumRelContributions)/sumWeights), 1.0f); 
    2808 #else 1 
     2806#else  
    28092807          leaf->mImportance = 
    28102808                (weightAbsContributions*maxContribution + 
Note: See TracChangeset for help on using the changeset viewer.