Ignore:
Timestamp:
08/15/05 20:50:00 (19 years ago)
Author:
mattausch
Message:

bsp viewcell stuff
fixed some bugs
left debug messages
added heuristics
added bsp options

File:
1 edited

Legend:

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

    r237 r238  
    1313class Face; 
    1414 
    15  
    16 /** Queue storing a soup of polygons used during BSP tree construction 
     15/** Container storing polygons used during BSP tree construction 
    1716*/ 
    18 typedef queue<Polygon3 *> PolygonQueue; 
     17typedef vector<Polygon3 *> PolygonContainer; 
    1918 
    2019/** Class representing a general planar polygon in 3d. 
     
    3231        /** Returns supporting plane of this polygon. 
    3332        */ 
    34         Plane3 GetSupportingPlane(); 
     33        Plane3 GetSupportingPlane() const; 
    3534 
    3635        /** Splits polygon. 
     
    4443        enum {BACK_SIDE, FRONT_SIDE, SPLIT, COINCIDENT}; 
    4544 
    46         /** Side of the plane where the polygon is located. 
     45        /** Classify polygon with respect to the plane. 
    4746            @returns one of BACK_SIDE, FRONT_SIDE, SPLIT, COINCIDENT 
    4847        */ 
    49         int Side(Plane3 *plane); 
     48        int ClassifyPlane(const Plane3 &plane) const; 
     49 
     50        /** Side of the polygon with respect to the plane. 
     51                @returns 1 if on front side, -1 if on back side, 0 else. 
     52        */ 
     53        int Side(const Plane3 &plane) const; 
    5054 
    5155        /** Deletes all polygons om the queue. 
    5256        */ 
    53         static void DeletePolygons(PolygonQueue *polys); 
     57        static void DeletePolygons(PolygonContainer *polys); 
    5458 
    5559        /// vertices are connected in counterclockwise order. 
Note: See TracChangeset for help on using the changeset viewer.