Changeset 238 for trunk/VUT/GtpVisibilityPreprocessor/src/Polygon3.h
- Timestamp:
- 08/15/05 20:50:00 (19 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/VUT/GtpVisibilityPreprocessor/src/Polygon3.h
r237 r238 13 13 class Face; 14 14 15 16 /** Queue storing a soup of polygons used during BSP tree construction 15 /** Container storing polygons used during BSP tree construction 17 16 */ 18 typedef queue<Polygon3 *> PolygonQueue;17 typedef vector<Polygon3 *> PolygonContainer; 19 18 20 19 /** Class representing a general planar polygon in 3d. … … 32 31 /** Returns supporting plane of this polygon. 33 32 */ 34 Plane3 GetSupportingPlane() ;33 Plane3 GetSupportingPlane() const; 35 34 36 35 /** Splits polygon. … … 44 43 enum {BACK_SIDE, FRONT_SIDE, SPLIT, COINCIDENT}; 45 44 46 /** Side of the plane where the polygon is located.45 /** Classify polygon with respect to the plane. 47 46 @returns one of BACK_SIDE, FRONT_SIDE, SPLIT, COINCIDENT 48 47 */ 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; 50 54 51 55 /** Deletes all polygons om the queue. 52 56 */ 53 static void DeletePolygons(Polygon Queue*polys);57 static void DeletePolygons(PolygonContainer *polys); 54 58 55 59 /// vertices are connected in counterclockwise order.
Note: See TracChangeset
for help on using the changeset viewer.