Changeset 1785 for GTP/trunk/Lib/Vis/Preprocessing/src/RssTree.cpp
- Timestamp:
- 11/23/06 21:38:45 (18 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
GTP/trunk/Lib/Vis/Preprocessing/src/RssTree.cpp
r1757 r1785 2179 2179 int startIndex = (int)rays.size(); 2180 2180 2181 Debug<<"B"<<flush;2181 // Debug<<"B"<<flush; 2182 2182 2183 2183 AxisAlignedBox3 box = GetBBox(leaf); … … 2192 2192 } 2193 2193 2194 Debug<<"R"<<flush;2194 // Debug<<"R"<<flush; 2195 2195 2196 2196 for (int i=0; i < numberOfRays; i++) { … … 2229 2229 origin = box.GetPoint(pVector); 2230 2230 dirVector = dirBox.GetPoint(dVector); 2231 2231 2232 2232 direction = Vector3(sin(dirVector.x), sin(dirVector.y), cos(dirVector.x)); 2233 2234 2233 2235 2234 … … 2253 2252 #if 0 2254 2253 static int counter = 0; 2255 Debug<<counter++<<flush;2254 // Debug<<counter++<<flush; 2256 2255 2257 2256 if (counter > 10374968) { … … 2268 2267 } 2269 2268 2270 Debug<<"D"<<flush;2269 // Debug<<"D"<<flush; 2271 2270 2272 2271 float density = 1.0f; … … 2692 2691 2693 2692 // always generate at leat n ray per leaf 2694 int fixedPerLeaf = 0;2693 int fixedPerLeaf = 1; 2695 2694 // int fixedPerLeaf = 0; 2696 2695 int fixed = fixedPerLeaf*(int)leaves.size(); 2697 int iGenerated = numberOfRays; 2696 2697 // check if the number of fixed is not too big 2698 2699 if (fixed >= numberOfRays/2) { 2700 fixedPerLeaf = 0; 2701 fixed = 0; 2702 } 2703 2704 int iGenerated = numberOfRays - fixed; 2698 2705 float ratioPerLeaf = iGenerated /(avgContrib*numberOfLeaves); 2699 2706 2700 2707 k = 0; 2701 2708 … … 2749 2756 } 2750 2757 2751 float weightAbsContributions = 0.0f;2758 float weightAbsContributions = ABS_CONTRIBUTION_WEIGHT; 2752 2759 // if small very high importance of the last sample 2753 2760 // if 1.0f then weighs = 1 1/2 1/3 1/4 2754 2761 float passSampleWeightDecay = 1.0f; 2755 2762 //float passSampleWeightDecay = 0.0001f; 2756 2757 2763 2758 2764 float
Note: See TracChangeset
for help on using the changeset viewer.