Ignore:
Timestamp:
06/18/06 03:47:06 (18 years ago)
Author:
mattausch
Message:

worked on view-object space partition
fixed some loading bugs
fixeds some exporting bugs using line segments
enabling other methods for view space sampling in ViewCellsManager? OBJECT_DIRECTION_BASED_DISTRIBUTION)
added class interface for a sampling strategy

File:
1 edited

Legend:

Unmodified
Added
Removed
  • GTP/trunk/Lib/Vis/Preprocessing/src/Mesh.h

    r1005 r1020  
    244244  Mesh *GetMesh() { return mMesh; } 
    245245 
    246   virtual AxisAlignedBox3 GetBox() { 
     246  virtual AxisAlignedBox3 GetBox() const { 
    247247    return mMesh->mBox; 
    248248  } 
     
    250250  virtual int CastRay(Ray &ray); 
    251251 
    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; } 
    254254  virtual float IntersectionComplexity() {  return (float)mMesh->mFaces.size(); } 
    255255 
    256         virtual int NumberOfFaces() const {  return (int)mMesh->mFaces.size(); } 
     256  virtual int NumberOfFaces() const {  return (int)mMesh->mFaces.size(); } 
    257257 
    258258  virtual int Type() const { return MESH_INSTANCE; } 
     
    297297  TransformedMeshInstance(Mesh *mesh); 
    298298   
    299   virtual AxisAlignedBox3 GetBox(); 
     299  virtual AxisAlignedBox3 GetBox() const; 
    300300    
    301301   
     
    318318  /** The transformation is returned in m. 
    319319  */ 
    320   void GetWorldTransform(Matrix4x4 &m); 
     320  void GetWorldTransform(Matrix4x4 &m) const; 
    321321 
    322322  /** 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; 
    326326 
    327327protected: 
Note: See TracChangeset for help on using the changeset viewer.