Manta Interactive Ray Tracer Development Mailing List

Text archives Help


[Manta] r1842 - trunk/Core/Geometry


Chronological Thread 
  • From: brownlee@sci.utah.edu
  • To: manta@sci.utah.edu
  • Subject: [Manta] r1842 - trunk/Core/Geometry
  • Date: Fri, 9 Nov 2007 11:42:16 -0700 (MST)

Author: brownlee
Date: Fri Nov  9 11:42:15 2007
New Revision: 1842

Modified:
   trunk/Core/Geometry/ScalarTransform1D.h
Log:
fixed some compiler errors with ScalarTransform1D

Modified: trunk/Core/Geometry/ScalarTransform1D.h
==============================================================================
--- trunk/Core/Geometry/ScalarTransform1D.h     (original)
+++ trunk/Core/Geometry/ScalarTransform1D.h     Fri Nov  9 11:42:15 2007
@@ -21,7 +21,7 @@
     ~ScalarTransform1D(void);
 
     inline int getLookupIndex(const LType value) const {
-      return static_cast<int>((value - min)*inv_range*(results.size() - 1));
+      return static_cast<int>((value - min)*inv_range*(results->size() - 1));
     }
 
     inline RType lookup(const LType value) const {
@@ -30,7 +30,7 @@
 
     inline int getBoundLookupIndex(const LType value) const {
       int idx=getLookupIndex(value);
-      return SCIRun::Clamp(index, 0, results->size() - 1);
+      return SCIRun::Clamp(idx, 0, results->size() - 1);
     }
 
     inline RType lookupBound(const LType value) const {




  • [Manta] r1842 - trunk/Core/Geometry, brownlee, 11/09/2007

Archive powered by MHonArc 2.6.16.

Top of page