Changeset 2146
- Timestamp:
- 02/20/07 18:36:14 (18 years ago)
- Location:
- GTP/trunk/Lib/Vis/Preprocessing/src
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
GTP/trunk/Lib/Vis/Preprocessing/src/HashPvs.h
r2123 r2146 19 19 enum 20 20 { 21 bucket_size = 4,22 min_buckets = 821 bucket_size = 1, 22 min_buckets = 16 23 23 }; 24 24 … … 236 236 float HashPvs<T, S>::AddSample(T sample, const float pdf) 237 237 { 238 HASH_SET::iterator it;238 static HASH_SET::iterator it; 239 239 240 240 if (Find(sample, it)) … … 243 243 mEntries.insert(sample); 244 244 return 1.0f; 245 246 /*pair<HASH_SET::iterator, bool> p = mEntries.insert(sample); 247 248 if (p.second) 249 return 0.0f; 250 else 251 return 1.0f;*/ 245 252 } 246 253 … … 249 256 void HashPvs<T, S>::AddSampleDirty(T sample, const float pdf) 250 257 { 251 HASH_SET::iterator it;258 static HASH_SET::iterator it; 252 259 253 260 // not yet in map … … 256 263 mEntries.insert(sample); 257 264 } 265 266 //pair<HASH_SET::iterator, bool> p = mEntries.insert(sample); 258 267 } 259 268 … … 263 272 const float pdf) 264 273 { 265 HASH_SET::iterator it; 274 /*pair<HASH_SET::iterator, bool> p = mEntries.insert(sample); 275 276 // already in map 277 return p.second; 278 */ 279 static HASH_SET::iterator it; 266 280 267 281 // already in map -
GTP/trunk/Lib/Vis/Preprocessing/src/Preprocessor.vcproj
r2130 r2146 222 222 OptimizeForWindowsApplication="TRUE" 223 223 AdditionalIncludeDirectories="..\src;..\..\..\..\..\..\NonGTP\Devil\include;..\..\..\..\..\..\NonGTP\Zlib\include;..\..\..\..\..\..\NonGTP\Xerces;..\..\..\..\..\..\NonGTP\Boost;..\MultiLevelRayTracing;"$(QTDIR)\include\QtCore";"$(QTDIR)\include\QtGui";"$(QTDIR)\include";"$(QTDIR)\include\QtOpenGl";"$(CG_INC_PATH)";Timer" 224 PreprocessorDefinitions="WIN32;NDEBUG;_LIB;GTP_INTERNAL;USE_QT;USE_ BIT_PVS"224 PreprocessorDefinitions="WIN32;NDEBUG;_LIB;GTP_INTERNAL;USE_QT;USE_HASH_PVS" 225 225 ExceptionHandling="TRUE" 226 226 RuntimeLibrary="2" -
GTP/trunk/Lib/Vis/Preprocessing/src/TestPreprocessor.vcproj
r2130 r2146 199 199 OptimizeForWindowsApplication="TRUE" 200 200 AdditionalIncludeDirectories="..\include;..\..\..\..\..\..\NonGTP\Boost;..\src;..\..\..\..\..\..\NonGTP\Devil\include;..\..\..\..\..\..\NonGTP\Zlib\include;..\..\..\..\..\..\NonGTP\Xerces;"$(QTDIR)\include\QtOpenGl";"$(QTDIR)\include\Qt";"$(QTDIR)\include\QtCore";"$(QTDIR)\include";QtInterface" 201 PreprocessorDefinitions="WIN32;NDEBUG;_CONSOLE;GTP_INTERNAL;USE_QT;USE_CG;USE_ BIT_PVS"201 PreprocessorDefinitions="WIN32;NDEBUG;_CONSOLE;GTP_INTERNAL;USE_QT;USE_CG;USE_HASH_PVS" 202 202 ExceptionHandling="TRUE" 203 203 RuntimeLibrary="2"
Note: See TracChangeset
for help on using the changeset viewer.