Ignore:
Timestamp:
11/01/05 20:02:22 (19 years ago)
Author:
mattausch
Message:

some ideas abou saving bspleaves with the ray and t

File:
1 edited

Legend:

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

    r362 r366  
    1111class BspPvs; 
    1212struct Triangle3; 
     13class BspLeaf; 
    1314 
    1415/** 
     
    5455        static ViewCell *Merge(ViewCell &front, ViewCell &back); 
    5556 
    56  
    5757        /// Ray set description of the rays passing through this node.   
    5858        PassingRaySet mPassingRays; 
     
    6060        /// Rays piercing this view cell. 
    6161        RayContainer mPiercingRays; 
     62 
     63        /// view cells types 
     64        enum HierarchyType {BSP, KD}; 
     65 
     66        /** Generates view cells of type specified by view cells type. 
     67        */ 
     68        static ViewCell *Generate(Mesh *mesh = NULL); 
     69 
     70        /// type of view cells hierarchy (KD, BSP) 
     71        static HierarchyType sHierarchy; 
    6272 
    6373protected: 
     
    6777}; 
    6878 
    69 //}; // GtpVisibilityPreprocessor 
     79class BspViewCell: public ViewCell 
     80{ 
     81public: 
     82        BspViewCell(): mBspLeaves(0) {} 
     83        BspViewCell(Mesh *mesh):  
     84        ViewCell(mesh), mBspLeaves(0) {} 
     85 
     86        /// Leaves which hold this view cell. 
     87        vector<BspLeaf *> mBspLeaves; 
     88}; 
    7089 
    7190#endif 
Note: See TracChangeset for help on using the changeset viewer.