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

SCM Repository

[diderot] Diff of /trunk/test/fields.diderot
ViewVC logotype

Diff of /trunk/test/fields.diderot

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

revision 2635, Mon May 26 14:06:39 2014 UTC revision 2636, Tue May 27 16:18:36 2014 UTC
# Line 8  Line 8 
8  int imgSizeX = 300;  int imgSizeX = 300;
9  int imgSizeY = 200;  int imgSizeY = 200;
10    
11  image(2)[2] Vimg = load("../data/vorttest.nrrd");  image(2)[2] Vimg = image("../data/vorttest.nrrd");
12    
13  field#1(2)[2] Vpos = Vimg ⊛ ctmr;  field#1(2)[2] Vpos = Vimg ⊛ ctmr;
14  field#1(2)[2] V1 = -Vpos;  field#1(2)[2] V1 = -Vpos;
# Line 19  Line 19 
19    
20  field#1(2)[2] V4 = Vpos + Vpos;  field#1(2)[2] V4 = Vpos + Vpos;
21    
22  //image(2)[] Rimg = load("../data/vorttest-rand.nrrd");  //image(2)[] Rimg = image("../data/vorttest-rand.nrrd");
23  field#0(2)[] R = load("../data/vorttest-rand.nrrd") ⊛ tent;  field#0(2)[] R = image("../data/vorttest-rand.nrrd") ⊛ tent;
24    
25  strand LIC (int xi, int yi) {  strand LIC (int xi, int yi) {
26      real xx = lerp(0.0, 3.0, -0.5, real(xi), real(imgSizeX)-0.5);      real xx = lerp(0.0, 3.0, -0.5, real(xi), real(imgSizeX)-0.5);

Legend:
Removed from v.2635  
changed lines
  Added in v.2636

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