Changeset 2097 for GTP/trunk/Lib/Vis/OnlineCullingCHC/OGRE/include
- Timestamp:
- 02/06/07 20:33:48 (18 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
GTP/trunk/Lib/Vis/OnlineCullingCHC/OGRE/include/OgreBoundingBoxConverter.h
r2069 r2097 180 180 { 181 181 list<SceneNode *> sceneNodeList; 182 182 183 183 // find intersecting scene nodes to get candidates for intersection 184 184 // note: this function has to be provided by scene manager 185 185 186 #if ENLARGE_NODE_BBOX 186 187 // make search radius larger 187 AxisAlignedBox mybox = EnlargeBox(box);188 mSceneMgr->findNodesIn( mybox, sceneNodeList, NULL);188 AxisAlignedBox largebox = EnlargeBox(box); 189 mSceneMgr->findNodesIn(largebox, sceneNodeList, NULL); 189 190 190 191 list<SceneNode *>::const_iterator sit, sit_end = sceneNodeList.end(); 191 192 192 193 GtpVisibilityPreprocessor::AxisAlignedBox3 nodeBox = 193 OgreTypeConverter::ConvertFromOgre( mybox);194 OgreTypeConverter::ConvertFromOgre(largebox); 194 195 #else 195 196 … … 201 202 OgreTypeConverter::ConvertFromOgre(box); 202 203 #endif 203 204 204 205 // loop through the intersected scene nodes 205 206 for (sit = sceneNodeList.begin(); sit != sceneNodeList.end(); ++ sit) … … 233 234 } 234 235 } 236 235 237 #if USE_KD_PVS 236 238 //------------------------------------------------------------------------- … … 255 257 EngineIntersectable *entry = 256 258 new EngineIntersectable(entryObjects); 259 257 260 entry->SetId((*iit).first); 258 261
Note: See TracChangeset
for help on using the changeset viewer.