Home My Page Projects Code Snippets Project Openings diderot
Summary Activity Tracker Tasks SCM

SCM Repository

[diderot] Diff of /branches/pure-cfg/test/vr-MIP-test.diderot
ViewVC logotype

Diff of /branches/pure-cfg/test/vr-MIP-test.diderot

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 646, Thu Mar 17 21:23:22 2011 UTC revision 776, Thu Apr 7 21:50:30 2011 UTC
# Line 16  Line 16 
16    
17  real stepSz = 0.5;  real stepSz = 0.5;
18  image(3)[] img = load (dataFile);  image(3)[] img = load (dataFile);
19  //field#2(3)[] F = img ⊛ bspln3;  field#2(3)[] F = img ⊛ bspln3;
20  field#0(3)[] F = img ⊛ tent;  //field#0(3)[] F = img ⊛ tent;
21    
22  strand RayCast (int row, int col)  strand RayCast (int row, int col)
23  {  {
24      int r = row; // for debugging      int r = row; // for debugging
25      int c = col; // for debugging      int c = col; // for debugging
26      vec3 pos = orig + real(row)*rVec + real(col)*cVec;      vec3 pos = orig + real(row)*rVec + real(col)*cVec;
27      vec3 dir = (pos - eye)/|pos - eye|;      vec3 dir = normalize(pos - eye);
28      real t = 0.0;      real t = 0.0;
29      output real maxval = -∞;      output real maxval = -∞;
30    

Legend:
Removed from v.646  
changed lines
  Added in v.776

root@smlnj-gforge.cs.uchicago.edu
ViewVC Help
Powered by ViewVC 1.0.0