- Timestamp:
- 02/17/07 22:48:12 (17 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
GTP/trunk/Lib/Vis/Preprocessing/src/ViewCellsParserXerces.h
r2116 r2123 8 8 #include "Mesh.h" 9 9 #include "BoundingBoxConverter.h" 10 10 #include "PerfTimer.h" 11 #include <hash_map> 11 12 12 13 namespace GtpVisibilityPreprocessor { … … 30 31 class BspNode; 31 32 33 /* 34 struct pvs_hash_compare 35 { 36 enum 37 { 38 bucket_size = 4, 39 min_buckets = 8 40 }; 41 42 size_t operator()(Intersectable *a) const 43 { 44 size_t h = (size_t)(a->GetId());// % 2000; 45 return h; 46 } 47 48 bool operator()(int a, int b) const 49 { 50 return a < b; 51 } 52 };*/ 53 54 55 typedef stdext::hash_map<int, Intersectable *> pvs_hash; 56 32 57 33 58 class ViewCellsParseHandlers: public HandlerBase … … 132 157 int nObjects; 133 158 134 159 PerfTimer mBoxTimer; 160 PerfTimer mPvsTimer; 161 PerfTimer mObjectTimer; 162 163 pvs_hash mHashPvs; 164 135 165 //////////////////////////////// 136 166 137 167 138 168 // Handlers for X3D 139 169 170 void CreateHashVector(); 171 140 172 void StartBspLeaf(AttributeList& attributes); 141 173 void StartBspInterior(AttributeList& attributes);
Note: See TracChangeset
for help on using the changeset viewer.