Changeset 1023 for GTP/trunk/Lib/Vis/Preprocessing/src
- Timestamp:
- 06/19/06 18:41:08 (18 years ago)
- Location:
- GTP/trunk/Lib/Vis/Preprocessing/src
- Files:
-
- 4 edited
Legend:
- Unmodified
- Added
- Removed
-
GTP/trunk/Lib/Vis/Preprocessing/src/Environment.cpp
r1020 r1023 1541 1541 RegisterOption("BspTree.Construction.epsilon", 1542 1542 optFloat, 1543 "bsp_construction_ side_tolerance=",1543 "bsp_construction_epsilon=", 1544 1544 "0.002"); 1545 1545 … … 1859 1859 1860 1860 /************************************************************************************/ 1861 /* View space partition BSP tree related options*/1861 /* Rss preprocessor related options */ 1862 1862 /************************************************************************************/ 1863 1863 … … 1875 1875 1876 1876 /************************************************************************************/ 1877 /* View space partition BSP tree related options*/1877 /* View space partition BSP tree related options */ 1878 1878 /************************************************************************************/ 1879 1879 … … 2004 2004 RegisterOption("VspBspTree.Construction.epsilon", 2005 2005 optFloat, 2006 "vsp_bsp_construction_ side_tolerance=",2006 "vsp_bsp_construction_epsilon=", 2007 2007 "0.002"); 2008 2008 … … 2087 2087 "8.0"); 2088 2088 2089 2090 2091 /************************************************************************************/ 2092 /* View space partition tree related options */ 2093 /************************************************************************************/ 2094 2089 2095 2096 RegisterOption("VspTree.Termination.maxDepth", 2097 optInt, 2098 "vsp_term_max_depth=", 2099 "100"); 2100 2101 RegisterOption("VspTree.Termination.minRays", 2102 optInt, 2103 "vsp_term_min_rays=", 2104 "-1"); 2105 2106 2107 RegisterOption("VspTree.Termination.minPvs", 2108 optInt, 2109 "vsp_term_min_pvs=", 2110 "20"); 2111 2112 RegisterOption("VspTree.Termination.minProbability", 2113 optFloat, 2114 "vsp_term_min_probability=", 2115 "0.001"); 2116 2090 2117 2118 RegisterOption("VspTree.Termination.maxRayContribution", 2119 optFloat, 2120 "vsp_term_ray_contribution=", 2121 "0.9"); 2122 2123 RegisterOption("VspTree.Termination.maxCostRatio", 2124 optFloat, 2125 "vsp_term_max_cost_ratio=", 2126 "1.5"); 2127 2128 RegisterOption("VspTree.Termination.maxViewCells", 2129 optInt, 2130 "vsp_term_max_view_cells=", 2131 "10000"); 2132 2133 2134 RegisterOption("VspTree.Termination.missTolerance", 2135 optInt, 2136 "vsp_term_miss_tolerance=", 2137 "4"); 2138 2139 RegisterOption("VspTree.Termination.minGlobalCostRatio", 2140 optFloat, 2141 "vsp_term_min_global_cost_ratio=", 2142 "0.0001"); 2143 2144 RegisterOption("VspTree.useSplitCostQueue", 2145 optBool, 2146 "vsp_use_split_cost_queue=", 2147 "true"); 2148 2149 RegisterOption("VspTree.Termination.globalCostMissTolerance", 2150 optInt, 2151 "vsp_term_global_cost_miss_tolerance=", 2152 "4"); 2153 2154 RegisterOption("VspTree.Termination.ct_div_ci", 2155 optFloat, 2156 "vsp_term_ct_div_ci=", 2157 "0.0"); 2158 2159 RegisterOption("VspTree.Construction.epsilon", 2160 optFloat, 2161 "vsp_construction_epsilon=", 2162 "0.002"); 2163 2164 RegisterOption("VspTree.splitUseOnlyDrivingAxis", 2165 optBool, 2166 "vsp_split_only_driving_axis=", 2167 "false"); 2168 2169 RegisterOption("VspTree.maxStaticMemory", 2170 optFloat, 2171 "vsp_max_static_mem=", 2172 "8.0"); 2173 2174 RegisterOption("VspTree.useCostHeuristics", 2175 optBool, 2176 "vsp_use_cost_heuristics=", 2177 "false"); 2178 2179 RegisterOption("VspTree.simulateOctree", 2180 optBool, 2181 "vsp_simulate_octree=", 2182 "false"); 2183 2184 RegisterOption("VspTree.Construction.randomize", 2185 optBool, 2186 "vsp_construction_randomize=", 2187 "false"); 2188 2189 RegisterOption("VspTree.subdivisionStats", 2190 optString, 2191 "vsp_subdivision_stats=", 2192 "vspSubdivisionStats.log"); 2193 2194 RegisterOption("VspTree.Construction.minBand", 2195 optFloat, 2196 "vsp_construction_min_band=", 2197 "0.1"); 2198 2199 RegisterOption("VspTree.Construction.maxBand", 2200 optFloat, 2201 "vsp_construction_min_band=", 2202 "0.9"); 2091 2203 2092 2204 ////////////////////////////////////////////////////////////////////////////////// -
GTP/trunk/Lib/Vis/Preprocessing/src/VspBspTree.cpp
r1020 r1023 79 79 Environment::GetSingleton()->GetFloatValue("VspBspTree.Termination.maxRayContribution", mTermMaxRayContribution); 80 80 Environment::GetSingleton()->GetFloatValue("VspBspTree.Termination.minAccRayLenght", mTermMinAccRayLength); 81 Environment::GetSingleton()->GetFloatValue("VspBspTree.Termination.maxCostRatio", mTermMaxCostRatio);81 82 82 Environment::GetSingleton()->GetIntValue("VspBspTree.Termination.missTolerance", mTermMissTolerance); 83 83 Environment::GetSingleton()->GetIntValue("VspBspTree.Termination.maxViewCells", mMaxViewCells); -
GTP/trunk/Lib/Vis/Preprocessing/src/VspOspTree.cpp
r1022 r1023 333 333 mOutOfBoundsCell(NULL), 334 334 mStoreRays(false), 335 mUseRandomAxis(false),336 335 mTimeStamp(1) 337 336 { … … 347 346 Environment::GetSingleton()->GetFloatValue("VspTree.Termination.minProbability", mTermMinProbability); 348 347 Environment::GetSingleton()->GetFloatValue("VspTree.Termination.maxRayContribution", mTermMaxRayContribution); 349 Environment::GetSingleton()->GetFloatValue("VspTree.Termination.maxCostRatio", mTermMaxCostRatio);348 350 349 Environment::GetSingleton()->GetIntValue("VspTree.Termination.missTolerance", mTermMissTolerance); 351 350 Environment::GetSingleton()->GetIntValue("VspTree.Termination.maxViewCells", mMaxViewCells); … … 373 372 Environment::GetSingleton()->GetBoolValue("VspTree.useCostHeuristics", mUseCostHeuristics); 374 373 Environment::GetSingleton()->GetBoolValue("VspTree.simulateOctree", mCirculatingAxis); 375 Environment::GetSingleton()->GetBoolValue("VspTree.useRandomAxis", mUseRandomAxis); 376 Environment::GetSingleton()->GetIntValue("VspTree.nodePriorityQueueType", mNodePriorityQueueType); 377 374 375 378 376 char subdivisionStatsLog[100]; 379 377 Environment::GetSingleton()->GetStringValue("VspTree.subdivisionStats", subdivisionStatsLog); … … 403 401 Debug << "use cost heuristics: " << mUseCostHeuristics << endl; 404 402 Debug << "subdivision stats log: " << subdivisionStatsLog << endl; 405 Debug << "use random axis: " << mUseRandomAxis << endl; 406 Debug << "priority queue type: " << mNodePriorityQueueType << endl; 403 407 404 Debug << "circulating axis: " << mCirculatingAxis << endl; 408 405 Debug << "minband: " << mMinBand << endl; … … 1025 1022 // if we use some kind of specialised fixed axis 1026 1023 const bool useSpecialAxis = 1027 mOnlyDrivingAxis || mUseRandomAxis || mCirculatingAxis; 1028 1029 if (mUseRandomAxis) 1030 sAxis = Random(3); 1031 else if (mCirculatingAxis) 1024 mOnlyDrivingAxis || mCirculatingAxis; 1025 1026 if (mCirculatingAxis) 1032 1027 sAxis = (tData.mAxis + 1) % 3; 1033 1028 else if (mOnlyDrivingAxis) … … 2331 2326 Environment::GetSingleton()->GetFloatValue("VspTree.Termination.minProbability", mTermMinProbability); 2332 2327 Environment::GetSingleton()->GetFloatValue("VspTree.Termination.maxRayContribution", mTermMaxRayContribution); 2333 Environment::GetSingleton()->GetFloatValue("VspTree.Termination.maxCostRatio", mTermMaxCostRatio);2328 2334 2329 Environment::GetSingleton()->GetIntValue("VspTree.Termination.missTolerance", mTermMissTolerance); 2335 2330 Environment::GetSingleton()->GetIntValue("VspTree.Termination.maxViewCells", mMaxViewCells); … … 2357 2352 Environment::GetSingleton()->GetBoolValue("VspTree.useCostHeuristics", mUseCostHeuristics); 2358 2353 Environment::GetSingleton()->GetBoolValue("VspTree.simulateOctree", mCirculatingAxis); 2359 Environment::GetSingleton()->GetBoolValue("VspTree.useRandomAxis", mUseRandomAxis); 2360 Environment::GetSingleton()->GetIntValue("VspTree.nodePriorityQueueType", mNodePriorityQueueType); 2361 2354 2355 2362 2356 char subdivisionStatsLog[100]; 2363 2357 Environment::GetSingleton()->GetStringValue("VspTree.subdivisionStats", subdivisionStatsLog); … … 2387 2381 Debug << "use cost heuristics: " << mUseCostHeuristics << endl; 2388 2382 Debug << "subdivision stats log: " << subdivisionStatsLog << endl; 2389 Debug << "use random axis: " << mUseRandomAxis << endl; 2390 Debug << "priority queue type: " << mNodePriorityQueueType << endl; 2383 2391 2384 Debug << "circulating axis: " << mCirculatingAxis << endl; 2392 2385 Debug << "minband: " << mMinBand << endl; -
GTP/trunk/Lib/Vis/Preprocessing/src/VspOspTree.h
r1021 r1023 1049 1049 float mEpsilon; 1050 1050 1051 /// if we should use breath first priority for the splits1052 int mNodePriorityQueueType;1053 1054 // priority queue strategy1055 enum {BREATH_FIRST, DEPTH_FIRST, COST_BASED};1056 1057 1051 1058 1052 /// subdivision stats output file … … 1581 1575 float mEpsilon; 1582 1576 1583 /// if we should use breath first priority for the splits1584 int mNodePriorityQueueType;1585 1586 1577 1587 1578 /// subdivision stats output file
Note: See TracChangeset
for help on using the changeset viewer.