Changeset 868 for GTP/trunk/Lib/Vis/OnlineCullingCHC/IVReader/src
- Timestamp:
- 05/01/06 00:08:09 (19 years ago)
- Location:
- GTP/trunk/Lib/Vis/OnlineCullingCHC/IVReader/src
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
GTP/trunk/Lib/Vis/OnlineCullingCHC/IVReader/src/ivmeshdata.cpp
r187 r868 37 37 Ogre::AxisAlignedBox *IVMeshData::calcBoundingBox() 38 38 { 39 if ((vertices == NULL) || (vcnt <=0)) return new Ogre::AxisAlignedBox(0, 0, 0, 0, 0, 0); 39 if ((vertices == NULL) || (vcnt <=0)) 40 return new Ogre::AxisAlignedBox(0, 0, 0, 0, 0, 0); 41 40 42 Ogre::Real x, y, z, minX, minY, minZ, maxX, maxY, maxZ; 41 43 minX = minY = minZ = 999999; 42 44 maxX = maxY = maxZ = -999999; 45 43 46 for (int i=0; i<vcnt/3; i++) 44 47 { … … 50 53 if (minZ > z) minZ = z; if (maxZ < z) maxZ = z; 51 54 } 55 52 56 return new Ogre::AxisAlignedBox(minX, minY, minZ, maxX, maxY, maxZ); 53 54 57 } 55 58 … … 61 64 else 62 65 *icntOut = (icnt - 3*getSeparatorCnt(indices, icnt))*3; 63 if (*icntOut < 0) 64 int hoppla = 1; 66 65 67 Ogre::Real *indOut = new Ogre::Real[*icntOut]; 66 68 … … 244 246 Real *indicesNew = NULL; 245 247 mDataOut->roType = roType; 248 246 249 if (mDataOut->roType == IV_ROT_TRIANGLE_STRIP) 247 250 { -
GTP/trunk/Lib/Vis/OnlineCullingCHC/IVReader/src/ivreader.cpp
r187 r868 571 571 } 572 572 573 void IVReader::buildTree(Ogre::SceneManager* sceneMgr, Ogre::SceneNode *sceneNodeRoot, IVNode *IVReaderoot, IVMeshData *mData, Ogre::Material *material) 573 void IVReader::buildTree(Ogre::SceneManager* sceneMgr, 574 Ogre::SceneNode *sceneNodeRoot, 575 IVNode *IVReaderoot, IVMeshData *mData, 576 Ogre::Material *material) 574 577 { 575 578 using namespace Ogre;
Note: See TracChangeset
for help on using the changeset viewer.