Changeset 492 for trunk/VUT/GtpVisibilityPreprocessor/src/Mesh.h
- Timestamp:
- 01/03/06 23:33:45 (18 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/VUT/GtpVisibilityPreprocessor/src/Mesh.h
r406 r492 145 145 int GetRandomSurfacePoint(Vector3 &point, Vector3 &normal); 146 146 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 162 class MeshInstance : public Intersectable { 163 protected: 164 Mesh *mMesh; 165 166 public: 167 MeshInstance(Mesh *mesh):Intersectable(), mMesh(mesh) 168 { 169 } 170 171 int GetRandomSurfacePoint(Vector3 &point, Vector3 &normal); 172 147 173 int 148 174 GetRandomVisibleSurfacePoint(Vector3 &point, … … 151 177 const int maxTries 152 178 ); 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 int172 GetRandomVisibleSurfacePoint(Vector3 &point,173 Vector3 &normal,174 const Vector3 &viewpoint,175 const int maxTries176 );177 179 178 180
Note: See TracChangeset
for help on using the changeset viewer.