Ignore:
Timestamp:
11/07/05 11:27:38 (19 years ago)
Author:
bittner
Message:

VssPreprocessor? updates - directional rays, x3dexporter updates - removed duplicated code for ray exports

File:
1 edited

Legend:

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

    r382 r386  
    3939  Vector3 mTermination; 
    4040         
     41        /// Termination object for the ray 
     42        /// only the termination object is actually used 
    4143        Intersectable *mOriginObject; 
    4244        Intersectable *mTerminationObject; 
     
    6264                Vector3 dir = GetDir(); 
    6365 
     66#define BIDIRECTIONAL_RAY 0 
     67#if BIDIRECTIONAL_RAY 
    6468                if (dir.y < 0) { 
    6569                        // swap objects and poits        
     
    6872                        dir = -dir; 
    6973                } 
    70                  
     74#endif 
    7175                if (dir.x > 0.0f) mFlags |= FPosDirX; 
    7276    if (dir.y > 0.0f) mFlags |= FPosDirY; 
     
    8589 
    8690        int HitCount() const { 
     91#if BIDIRECTIONAL_RAY 
    8792                if (mOriginObject && mTerminationObject) 
    8893                        return 2; 
     
    9095                        return 1; 
    9196                return 0; 
     97#else 
     98                return (mTerminationObject) ? 1 : 0; 
     99#endif 
    92100        } 
    93101         
Note: See TracChangeset for help on using the changeset viewer.