Changeset 349 for trunk/VUT/GtpVisibilityPreprocessor/src/Polygon3.h
- Timestamp:
- 10/26/05 19:18:30 (19 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/VUT/GtpVisibilityPreprocessor/src/Polygon3.h
r333 r349 23 23 { 24 24 public: 25 enum {BACK_SIDE, FRONT_SIDE, SPLIT, COINCIDENT}; 26 27 /** Default constructor creating an empty polygon. 28 */ 25 29 Polygon3(); 26 30 /** Constructor creating a polygon from the vertices. 31 */ 27 32 Polygon3(const VertexContainer &vertices); 33 /** Creates a polygon and stores pointer to parent mesh 34 instance. 35 */ 28 36 Polygon3(MeshInstance *parent); 29 30 ~Polygon3();31 37 32 38 // creates an "infinite" polygon from this plane … … 89 95 int CastRay(const Ray &ray, float &t, const float nearestT); 90 96 91 /** Returns piercing rays container.92 */93 RayContainer *GetPiercingRays();94 95 /** Adds a ray to the ray container.96 */97 void AddPiercingRay(Ray *ray);98 99 97 /// vertices are connected in counterclockwise order. 100 98 VertexContainer mVertices; … … 107 105 108 106 /// Rays piercing this polygon 109 RayContainer *mPiercingRays;107 RayContainer mPiercingRays; 110 108 111 static float sSideTolerance; 112 static float sSideToleranceSqrt; 109 /** The piercing rays of the polygon are inherited by the child fragments 110 @parm front_piece the front fragment inheriting the front rays 111 @param back_piece the back fragment inheriting the back rays 112 */ 113 void InheritRays(Polygon3 &front_piece, 114 Polygon3 &back_piece) const; 113 115 }; 114 116
Note: See TracChangeset
for help on using the changeset viewer.