Ignore:
Timestamp:
01/03/06 23:33:45 (18 years ago)
Author:
bittner
Message:

Large merge - viewcells seem not functional now

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/VUT/GtpVisibilityPreprocessor/src/Mesh.h

    r406 r492  
    145145  int GetRandomSurfacePoint(Vector3 &point, Vector3 &normal); 
    146146 
     147  int 
     148  GetRandomVisibleSurfacePoint(Vector3 &point, 
     149                                                           Vector3 &normal, 
     150                                                           const Vector3 &viewpoint, 
     151                                                           const int maxTries 
     152                                                           ); 
     153   
     154  virtual ostream &Describe(ostream &s) { 
     155        return s<<"Mesh #vertices="<<(int)mVertices.size()<<" #faces="<<(int)mFaces.size(); 
     156  } 
     157   
     158 
     159}; 
     160 
     161 
     162class MeshInstance : public Intersectable { 
     163protected: 
     164  Mesh *mMesh; 
     165   
     166public: 
     167  MeshInstance(Mesh *mesh):Intersectable(), mMesh(mesh) 
     168  { 
     169  } 
     170 
     171  int GetRandomSurfacePoint(Vector3 &point, Vector3 &normal); 
     172 
    147173        int 
    148174        GetRandomVisibleSurfacePoint(Vector3 &point, 
     
    151177                                                                                                                         const int maxTries 
    152178                                                                                                                         ); 
    153                  
    154         virtual ostream &Describe(ostream &s) { 
    155                 return s<<"Mesh #vertices="<<(int)mVertices.size()<<" #faces="<<(int)mFaces.size(); 
    156         } 
    157  
    158 }; 
    159  
    160 class MeshInstance : public Intersectable { 
    161 protected: 
    162   Mesh *mMesh; 
    163    
    164 public: 
    165   MeshInstance(Mesh *mesh):Intersectable(), mMesh(mesh) 
    166   { 
    167   } 
    168  
    169   int GetRandomSurfacePoint(Vector3 &point, Vector3 &normal); 
    170  
    171         int 
    172         GetRandomVisibleSurfacePoint(Vector3 &point, 
    173                                                                                                                          Vector3 &normal, 
    174                                                                                                                          const Vector3 &viewpoint, 
    175                                                                                                                          const int maxTries 
    176                                                                                                                          ); 
    177179 
    178180 
Note: See TracChangeset for help on using the changeset viewer.