Ignore:
Timestamp:
08/09/05 18:39:28 (19 years ago)
Author:
mattausch
Message:

added stuff for bsp tree

File:
1 edited

Legend:

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

    r221 r224  
    11#ifndef _ViewCell_H__ 
    22#define _ViewCell_H__ 
     3 
     4#include "Intersectable.h" 
    35 
    46class Mesh; 
     
    1113        View cell represented as a mesh 
    1214*/ 
    13 class ViewCell 
     15class ViewCell: public Intersectable 
    1416{ 
    1517public: 
     
    2830        BspPvs *GetPVS() {return mPvs;} 
    2931 
     32        AxisAlignedBox3 GetBox()  {return mMesh->mBox;} 
     33   
     34        int CastRay(Ray &ray) {return 0;} 
     35   
     36        bool IsConvex() {return mMesh->mIsConvex;} 
     37        bool IsWatertight() {return mMesh->mIsWatertight;} 
     38        float IntersectionComplexity() {return mMesh->mFaces.size();} 
     39 
     40        int Type() const { return VIEWCELL; } 
     41 
     42        void GetRandomSurfacePoint(Vector3 &point, Vector3 &normal) {point = Vector3(0,0,0);}; 
     43 
    3044protected: 
    3145 
Note: See TracChangeset for help on using the changeset viewer.