Manta Interactive Ray Tracer Development Mailing List

Text archives Help


[MANTA] r1620 - trunk/Interface


Chronological Thread 
  • From: leenak@sci.utah.edu
  • To: manta@sci.utah.edu
  • Subject: [MANTA] r1620 - trunk/Interface
  • Date: Thu, 9 Aug 2007 18:05:24 -0600 (MDT)

Author: leenak
Date: Thu Aug  9 18:05:23 2007
New Revision: 1620

Modified:
   trunk/Interface/RayPacket.h
Log:
RayPacket.h has been formatted

Modified: trunk/Interface/RayPacket.h
==============================================================================
--- trunk/Interface/RayPacket.h (original)
+++ trunk/Interface/RayPacket.h Thu Aug  9 18:05:23 2007
@@ -69,12 +69,12 @@
 #endif
     };
     RayPacketData()
-      {
-      }
+    {
+    }
 
     ~RayPacketData()
-      {
-      }
+    {
+    }
 
     // Pointer-based arrays
 
@@ -162,28 +162,25 @@
     // Create a "toplevel" raypacket.  You need to call resetHits or
     // resetHit for every data element in the ray packet before you
     // start intersecting.  This will initialize minT and hitMatl.
-       RayPacket(RayPacketData& data, PacketShape shape, int rayBegin, int 
rayEnd,
-                                               int depth, int flags)
-               : data(&data), shape(shape), rayBegin(rayBegin), 
rayEnd(rayEnd),
-                       depth(depth), flags(flags)
-               {
-               }
+    RayPacket(RayPacketData& data, PacketShape shape, int rayBegin, int 
rayEnd, int depth, int flags)
+    : data(&data), shape(shape), rayBegin(rayBegin), rayEnd(rayEnd), 
depth(depth), flags(flags)
+    {
+    }
 
     // Create a subset of another raypacket
-       RayPacket(RayPacket& parent, int rayBegin, int rayEnd)
-               : data(parent.data), rayBegin(rayBegin), rayEnd(rayEnd),
-                       depth(parent.depth), flags(parent.flags)
-      {
-        shape = parent.shape;
-        if(shape == SquarePacket){
-          // A subset of a square is not necessarily a square
-          shape = UnknownShape;
-        }
+    RayPacket(RayPacket& parent, int rayBegin, int rayEnd)
+    : data(parent.data), rayBegin(rayBegin), rayEnd(rayEnd), 
depth(parent.depth), flags(parent.flags)
+    {
+      shape = parent.shape;
+      if(shape == SquarePacket){
+       // A subset of a square is not necessarily a square
+       shape = UnknownShape;
       }
+    }
 
     ~RayPacket()
-                       {
-                       }
+    {
+    }
 
     // Raypacket flags
     int getAllFlags() const
@@ -292,9 +289,9 @@
     }
 
     Real &getOrigin(int which, int i)
-                       {
-                               return data->origin[i][which];
-                       }
+    {
+      return data->origin[i][which];
+    }
     const Real &getOrigin(int which, int i) const
     {
       return data->origin[i][which];
@@ -324,9 +321,9 @@
     }
 
     Real &getInverseDirection(int which, int i)
-                       {
-                               return data->inverseDirection[i][which];
-                       }
+    {
+      return data->inverseDirection[i][which];
+    }
 
     const Real &getInverseDirection(int which, int i) const
     {
@@ -366,9 +363,9 @@
       flags |= ConstantSigns;
     }
     VectorT<int, 3> getSigns(int which) const
-                       {
-                               return VectorT<int, 3>(data->signs[0][which], 
data->signs[1][which], data->signs[2][which]);
-                       }
+    {
+      return VectorT<int, 3>(data->signs[0][which], data->signs[1][which], 
data->signs[2][which]);
+    }
     int getSign(int which, int sign) const
     {
       return data->signs[sign][which];
@@ -443,9 +440,9 @@
 #endif
     }
     Real &getMinT(int which) const
-                       {
-                               return data->minT[which];
-                       }
+    {
+      return data->minT[which];
+    }
     void scaleMinT(int which, Real scale)
     {
       data->minT[which] *= scale;
@@ -697,9 +694,9 @@
       return Vector(data->texCoords[0][which], data->texCoords[1][which], 
data->texCoords[2][which]);
     }
     VectorT<Real, 2> getTexCoords2(int which) const
-                       {
-                               return VectorT<Real, 
2>(data->texCoords[0][which], data->texCoords[1][which]);
-                       }
+    {
+      return VectorT<Real, 2>(data->texCoords[0][which], 
data->texCoords[1][which]);
+    }
 
     Real getTexCoords2(int which, int dim)
     {
@@ -821,7 +818,7 @@
     int rayEnd;
     int depth;
     int flags;
-               Real side[MaxSize]; //To store dot product values
+    Real side[MaxSize]; //To store dot product values
   };
 
   typedef MANTA_ALIGN(16) Color::ComponentType 
ColorArray[Color::NumComponents][RayPacket::MaxSize];




  • [MANTA] r1620 - trunk/Interface, leenak, 08/09/2007

Archive powered by MHonArc 2.6.16.

Top of page