Changeset 1028 for GTP/trunk/Lib/Vis
- Timestamp:
- 06/21/06 10:09:12 (19 years ago)
- Location:
- GTP/trunk/Lib/Vis
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
GTP/trunk/Lib/Vis/OnlineCullingCHC/OGRE/include/OgreMeshInstance.h
r870 r1028 25 25 26 26 27 28 27 //-- inherited functions from Intersectable 29 28 30 /** Returns the mail of this box. 31 */ 32 GtpVisibilityPreprocessor::AxisAlignedBox3 GetBox(); 29 GtpVisibilityPreprocessor::AxisAlignedBox3 GetBox() const; 33 30 34 31 int CastRay(GtpVisibilityPreprocessor::Ray &ray); 35 32 36 bool IsConvex() ;37 bool IsWatertight() ;33 bool IsConvex() const; 34 bool IsWatertight() const; 38 35 float IntersectionComplexity(); 39 36 … … 41 38 int Type() const; 42 39 43 int GetRandomSurfacePoint(GtpVisibilityPreprocessor::Vector3 &point, GtpVisibilityPreprocessor::Vector3 &normal); 40 int GetRandomSurfacePoint(GtpVisibilityPreprocessor::Vector3 &point, 41 GtpVisibilityPreprocessor::Vector3 &normal); 44 42 45 43 int GetRandomVisibleSurfacePoint(GtpVisibilityPreprocessor::Vector3 &point, … … 54 52 55 53 Entity *mMesh; 56 //AxisAlignedBox357 54 }; 58 55 -
GTP/trunk/Lib/Vis/OnlineCullingCHC/OGRE/src/OgreMeshInstance.cpp
r870 r1028 20 20 } 21 21 22 GtpVisibilityPreprocessor::AxisAlignedBox3 OgreMeshInstance::GetBox() 22 GtpVisibilityPreprocessor::AxisAlignedBox3 OgreMeshInstance::GetBox() const 23 23 { 24 24 return OgreTypeConverter::ConvertFromOgre(mMesh->getWorldBoundingBox()); … … 30 30 } 31 31 32 bool OgreMeshInstance::IsConvex() 32 bool OgreMeshInstance::IsConvex() const 33 33 { 34 34 return true; 35 35 } 36 36 37 bool OgreMeshInstance::IsWatertight() 37 bool OgreMeshInstance::IsWatertight() const 38 38 { 39 39 return true;
Note: See TracChangeset
for help on using the changeset viewer.