Changeset 2115 for GTP/trunk/Lib/Vis/OnlineCullingCHC/OGRE/include
- Timestamp:
- 02/12/07 19:00:37 (18 years ago)
- Location:
- GTP/trunk/Lib/Vis/OnlineCullingCHC/OGRE/include
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
GTP/trunk/Lib/Vis/OnlineCullingCHC/OGRE/include/OgreBoundingBoxConverter.h
r2113 r2115 39 39 }; 40 40 41 41 42 /** Class which converts preprocessor types to OGRE types 42 43 */ … … 121 122 122 123 list<SceneNode *>::const_iterator sit, sit_end = sceneNodeList.end(); 124 123 125 // find the bbox which is closest to the current bbox 124 126 for (sit = sceneNodeList.begin(); sit != sit_end; ++ sit) … … 247 249 for (iit = iboxes.begin(); iit != iit_end; ++ iit) 248 250 { 251 const GtpVisibilityPreprocessor::AxisAlignedBox3 pbox = (*iit).second; 252 const int id = (*iit).first; 253 249 254 const AxisAlignedBox box = 250 OgreTypeConverter::ConvertToOgre( (*iit).second);251 252 EntityContainer *entryObjects = new EntityContainer();255 OgreTypeConverter::ConvertToOgre(pbox); 256 257 EntityContainer entryObjects; 253 258 254 259 // find all objects that intersect the bounding box 255 FindIntersectingObjects(box, *entryObjects); 256 260 FindIntersectingObjects(box, entryObjects); 261 262 // TODO: can actually just put single objects into pvs with same id, 263 // this can be sorted out later!! 264 #if 1 265 EntityContainer::const_iterator eit, eit_end = entryObjects.end(); 266 267 for (eit = entryObjects.begin(); eit != eit_end; ++ eit) 268 { 269 Entity *ent = *eit; 270 271 // warning: multiple ids possible 272 OgreMeshInstance *omi = new OgreMeshInstance(ent); 273 omi->SetId(id); 274 objects.push_back(omi); 275 } 276 #else 257 277 EngineIntersectable *entry = 258 278 new EngineIntersectable(entryObjects); 259 279 260 entry->SetId((*iit).first); 261 280 entry->SetId(id); 262 281 objects.push_back(entry); 282 #endif 263 283 } 264 284 265 285 return true; 266 286 } 287 267 288 #else 289 268 290 //------------------------------------------------------------------------- 269 291 template<typename T> -
GTP/trunk/Lib/Vis/OnlineCullingCHC/OGRE/include/OgreMeshInstance.h
r2069 r2115 49 49 const int maxTries); 50 50 51 int GetRandomEdgePoint(GtpVisibilityPreprocessor::Vector3 &point, 52 GtpVisibilityPreprocessor::Vector3 &normal); 53 51 54 ostream &Describe(ostream &s); 52 55
Note: See TracChangeset
for help on using the changeset viewer.