Changeset 235 for trunk/VUT/GtpVisibilityPreprocessor/src/ViewCell.h
- Timestamp:
- 08/12/05 01:17:56 (19 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/VUT/GtpVisibilityPreprocessor/src/ViewCell.h
r224 r235 3 3 4 4 #include "Intersectable.h" 5 #include "Containers.h" 5 6 6 7 class Mesh; … … 19 20 the viewcell. 20 21 */ 21 ViewCell(Mesh *mesh) : mMesh(mesh), mPvs(NULL) {}22 ViewCell(Mesh *mesh); 22 23 23 24 /** Returns pointer to the mesh which represents the shape of the viewcell. 24 25 */ 25 Mesh *GetMesh() {return mMesh;}26 Mesh *GetMesh(); 26 27 27 28 /** Returns pointer to PVS. 28 29 @returns PVS, i.e., the visible BSP tree nodes. 29 30 */ 30 BspPvs *GetPVS() {return mPvs;}31 BspPvs *GetPVS(); 31 32 32 AxisAlignedBox3 GetBox() {return mMesh->mBox;}33 AxisAlignedBox3 GetBox(); 33 34 34 int CastRay(Ray &ray) {return 0;}35 int CastRay(Ray &ray); 35 36 36 bool IsConvex() {return mMesh->mIsConvex;}37 bool IsWatertight() {return mMesh->mIsWatertight;}38 float IntersectionComplexity() {return mMesh->mFaces.size();}37 bool IsConvex(); 38 bool IsWatertight(); 39 float IntersectionComplexity(); 39 40 40 int Type() const { return VIEWCELL; }41 int Type() const; 41 42 42 void GetRandomSurfacePoint(Vector3 &point, Vector3 &normal) {point = Vector3(0,0,0);};43 void GetRandomSurfacePoint(Vector3 &point, Vector3 &normal); 43 44 45 /** Derives viewcells from object container. 46 @param objects the intersectables the viewcells are derived from 47 @param viewCells the viewcells are returned in this container 48 @param if >0, indicates the maximim number of viewcells that will be created 49 */ 50 static void DeriveViewCells(const ObjectContainer &objects, 51 ViewCellContainer &viewCells, 52 const int max); 44 53 protected: 45 54 55 /// the mesh defining the geometry of this viewcell 46 56 Mesh *mMesh; 47 57 /// the PVS (i.e., the visible bsp tree nodes)
Note: See TracChangeset
for help on using the changeset viewer.