Changeset 1942 for GTP/trunk/Lib/Vis/Preprocessing/src/RssTree.cpp
- Timestamp:
- 01/05/07 16:29:54 (18 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
GTP/trunk/Lib/Vis/Preprocessing/src/RssTree.cpp
r1931 r1942 2299 2299 { 2300 2300 Vector3 origin = sbox.GetPoint(Vector3(params[0], params[1], params[2])); 2301 2302 2301 Vector3 dirVector = sDirBBox.GetPoint(Vector3(params[3], params[4], 0.0f)); 2303 2304 2302 Vector3 direction = VssRay::GetInvDirParam(dirVector.x, dirVector.y); 2305 2303 … … 2308 2306 float minT, maxT; 2309 2307 2310 float boxSize = Magnitude(sbox.Size());2311 2308 // compute interection of the ray with the box 2312 2309 #if 1 2313 2310 if (sbox.ComputeMinMaxT(origin, direction, &minT, &maxT) && minT < maxT) 2314 dist = (maxT + 0.0f*boxSize);2311 dist = (maxT + Limits::Small); 2315 2312 #else 2313 float boxSize = Magnitude(sbox.Size()); 2316 2314 dist = 0.5f*boxSize; 2317 2315 #endif 2318 2316 2319 2317 origin += direction*dist; 2320 2318 2321 2319 //Debug<<"dir vector.x="<<dirVector.x<<"direction'.x="<<atan2(direction.x, direction.y)<<endl; 2322 2320 rays.push_back(SimpleRay(origin, … … 2765 2763 sumContributions += c1; 2766 2764 if (c1 > maxContribution) 2767 2765 maxContribution = c1; 2768 2766 2769 2767 //$$ 20.7. changed to sqr to pronouce higher contribution so that … … 2806 2804 pow(((weightAbsContributions*sumContributions + 2807 2805 (1.0f - weightAbsContributions)*sumRelContributions)/sumWeights), 1.0f); 2808 #else 12806 #else 2809 2807 leaf->mImportance = 2810 2808 (weightAbsContributions*maxContribution +
Note: See TracChangeset
for help on using the changeset viewer.