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

SCM Repository

[diderot] Diff of /branches/vis15/src/tests/rtest/tests/sum-ghp/sum-ghp.diderot
ViewVC logotype

Diff of /branches/vis15/src/tests/rtest/tests/sum-ghp/sum-ghp.diderot

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

revision 4496, Sat Sep 3 13:52:11 2016 UTC revision 4497, Sat Sep 3 14:12:36 2016 UTC
# Line 32  Line 32 
32  real camVmax = tan(camFOV*π/360.0)*camDist;  real camVmax = tan(camFOV*π/360.0)*camDist;
33  real camUmax = camVmax*real(imgResU)/real(imgResV);  real camUmax = camVmax*real(imgResU)/real(imgResV);
34    
35  field#2(3)[] F = bspln3 ⊛ image("../../data/ring.nrrd");  field#2(3)[] F = bspln3 ⊛ load_image("../../data/ring.nrrd");
36    
37  strand RayCast (int ui, int vi) {  strand RayCast (int ui, int vi) {
38      real rayU = lerp(-camUmax, camUmax, -0.5, real(ui), real(imgResU)-0.5);      real rayU = lerp(-camUmax, camUmax, -0.5, real(ui), real(imgResU)-0.5);
# Line 54  Line 54 
54      }      }
55  }  }
56    
57  grid(2) { RayCast(ui, vi) | vi in 0..(imgResV-1), ui in 0..(imgResU-1) }  create_array { RayCast(ui, vi) | vi in 0..(imgResV-1), ui in 0..(imgResU-1) }

Legend:
Removed from v.4496  
changed lines
  Added in v.4497

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