Ignore:
Timestamp:
10/26/05 19:18:30 (19 years ago)
Author:
mattausch
Message:

updated ray based subdivision

File:
1 edited

Legend:

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

    r333 r349  
    2323{ 
    2424public: 
     25        enum {BACK_SIDE, FRONT_SIDE, SPLIT, COINCIDENT}; 
     26 
     27        /** Default constructor creating an empty polygon. 
     28        */ 
    2529        Polygon3(); 
    26  
     30        /** Constructor creating a polygon from the vertices. 
     31        */ 
    2732        Polygon3(const VertexContainer &vertices); 
     33        /** Creates a polygon and stores pointer to parent mesh 
     34                instance. 
     35        */ 
    2836        Polygon3(MeshInstance *parent); 
    29  
    30         ~Polygon3(); 
    3137 
    3238        // creates an "infinite" polygon from this plane 
     
    8995        int CastRay(const Ray &ray, float &t, const float nearestT); 
    9096 
    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  
    9997        /// vertices are connected in counterclockwise order. 
    10098        VertexContainer mVertices; 
     
    107105 
    108106        /// Rays piercing this polygon 
    109         RayContainer *mPiercingRays; 
     107        RayContainer mPiercingRays; 
    110108 
    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; 
    113115}; 
    114116 
Note: See TracChangeset for help on using the changeset viewer.