Ignore:
Timestamp:
12/12/06 17:25:53 (18 years ago)
Author:
bittner
Message:

mixture distribution initial coding

File:
1 edited

Legend:

Unmodified
Added
Removed
  • GTP/trunk/Lib/Vis/Preprocessing/src/Ray.h

    r1877 r1883  
    316316struct SimpleRay 
    317317{ 
    318   int mId; 
    319318  Vector3 mOrigin; 
    320319  Vector3 mDirection; 
     320  short mType; 
     321  short mDistribution; 
    321322  float mPdf; 
    322   int mType; 
    323  
    324   static int sSimpleRayId; 
     323   
    325324  SimpleRay(): mType(Ray::LOCAL_RAY) { 
     325  } 
     326   
     327  SimpleRay(const Vector3 &o, 
     328                        const Vector3 &d, 
     329                        const short distribution, 
     330                        const float weight 
     331                        ): 
     332        mOrigin(o), 
     333        mDirection(d), 
     334        mType(Ray::LOCAL_RAY), 
     335        mDistribution(distribution), 
     336        mPdf(weight) 
     337  {      
    326338        //      mId = sSimpleRayId++; 
    327339  } 
    328340   
    329   SimpleRay(const Vector3 &o, const Vector3 &d, const float p=1.0f): 
    330         mOrigin(o), mDirection(d), mPdf(p), mType(Ray::LOCAL_RAY) {      
    331         //      mId = sSimpleRayId++; 
    332   } 
    333          
    334341  Vector3 Extrap(const float t) const { 
    335342        return mOrigin + mDirection * t; 
Note: See TracChangeset for help on using the changeset viewer.