Ignore:
Timestamp:
12/15/05 18:45:12 (19 years ago)
Author:
mattausch
Message:

updated rendersimulator

File:
1 edited

Legend:

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

    r465 r468  
    488488                                leafb->GetPvsSize() * (float)leafb->rays.size(); 
    489489#endif 
    490     } 
    491   }; 
    492    
    493   /** Simplified data for ray traversal only. 
    494   */ 
    495   struct RayTraversalData  
    496   { 
    497           RayInfo mRayData; 
    498           VspKdNode *mNode; 
    499        
    500           RayTraversalData() {} 
     490                } 
     491        }; 
     492   
     493        /** Simplified data for ray traversal only. 
     494        */ 
     495        struct RayTraversalData  
     496        { 
     497                RayInfo mRayData; 
     498                VspKdNode *mNode; 
     499 
     500                RayTraversalData() {} 
    501501           
    502           RayTraversalData(VspKdNode *n, const RayInfo &data): 
    503           mRayData(data), mNode(n) {} 
    504   }; 
    505          
     502                RayTraversalData(VspKdNode *n, const RayInfo &data): 
     503                mRayData(data), mNode(n) {} 
     504        }; 
     505         
     506        struct LineSegmentTraversalData  
     507        { 
     508                VspKdNode *mNode; 
     509                Vector3 mExitPoint; 
     510                 
     511                float mMaxT; 
     512     
     513                LineSegmentTraversalData () {} 
     514                LineSegmentTraversalData (VspKdNode *n, 
     515                                                                  const Vector3 &p, 
     516                                                                  const float maxt): 
     517                mNode(n), mExitPoint(p), mMaxT(maxt) {} 
     518        }; 
     519 
    506520public: 
    507521 
     
    558572                @returns the number of intersections with objects stored in the tree. 
    559573        */ 
    560         int CastRay(Ray &ray); 
     574        int CastLineSegment(const Vector3 &origin, 
     575                                                const Vector3 &termination, 
     576                                                vector<ViewCell *> &viewcells); 
    561577 
    562578        /** Collects view cells generated by this tree. 
Note: See TracChangeset for help on using the changeset viewer.