Changeset 1020 for GTP/trunk/Lib/Vis/Preprocessing/src/Mesh.h
- Timestamp:
- 06/18/06 03:47:06 (18 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
GTP/trunk/Lib/Vis/Preprocessing/src/Mesh.h
r1005 r1020 244 244 Mesh *GetMesh() { return mMesh; } 245 245 246 virtual AxisAlignedBox3 GetBox() {246 virtual AxisAlignedBox3 GetBox() const { 247 247 return mMesh->mBox; 248 248 } … … 250 250 virtual int CastRay(Ray &ray); 251 251 252 virtual bool IsConvex() { return mMesh->mIsConvex; }253 virtual bool IsWatertight() { return mMesh->mIsWatertight; }252 virtual bool IsConvex() const { return mMesh->mIsConvex; } 253 virtual bool IsWatertight() const { return mMesh->mIsWatertight; } 254 254 virtual float IntersectionComplexity() { return (float)mMesh->mFaces.size(); } 255 255 256 256 virtual int NumberOfFaces() const { return (int)mMesh->mFaces.size(); } 257 257 258 258 virtual int Type() const { return MESH_INSTANCE; } … … 297 297 TransformedMeshInstance(Mesh *mesh); 298 298 299 virtual AxisAlignedBox3 GetBox() ;299 virtual AxisAlignedBox3 GetBox() const; 300 300 301 301 … … 318 318 /** The transformation is returned in m. 319 319 */ 320 void GetWorldTransform(Matrix4x4 &m) ;320 void GetWorldTransform(Matrix4x4 &m) const; 321 321 322 322 /** Transforms a mesh according to the stored world transform. 323 @param transformedMesh returns the tranformed mesh.324 */ 325 void GetTransformedMesh(Mesh &transformedMesh) ;323 @param transformedMesh returns the tranformed mesh. 324 */ 325 void GetTransformedMesh(Mesh &transformedMesh) const; 326 326 327 327 protected:
Note: See TracChangeset
for help on using the changeset viewer.