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

SCM Repository

[diderot] Diff of /branches/vis15/src/tests/glk-tests/new/lic2d.diderot
ViewVC logotype

Diff of /branches/vis15/src/tests/glk-tests/new/lic2d.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 1  Line 1 
1    #version 2
2    
3  /*  /*
4  $DDRO_HOME/branches/vis12/bin/diderotc --exec lic2d.diderot \  $DDRO_HOME/branches/vis12/bin/diderotc --exec lic2d.diderot \
5  $DDRO_HOME/branches/charisee/bin/diderotc lic2d.diderot \  $DDRO_HOME/branches/charisee/bin/diderotc lic2d.diderot \
# Line 15  Line 17 
17  int stepNum = 80;  // steps taken up or downstream  int stepNum = 80;  // steps taken up or downstream
18  real stdv = sqrt(1.0/stepNum);  real stdv = sqrt(1.0/stepNum);
19    
20  field#1(2)[2] V = bspln3 ⊛ image("flow.nrrd");  field#1(2)[2] V = bspln3 ⊛ load_image("flow.nrrd");
21  field#1(2)[2] nV = normalize(V);  field#1(2)[2] nV = normalize(V);
22  field#0(2)[] R = tent ⊛ image("rand.nrrd");  field#0(2)[] R = tent ⊛ load_image("rand.nrrd");
23  field#0(1)[3] cmap = tent ⊛ image("cmap.nrrd");  field#0(1)[3] cmap = tent ⊛ load_image("cmap.nrrd");
24  strand LIC(vec2 x0, real sign) {  strand LIC(vec2 x0, real sign) {
25    real h = sign*h0;    real h = sign*h0;
26    vec2 x = x0;    vec2 x = x0;
# Line 38  Line 40 
40      rgb = cmap(∇×V(x0)) * clamp(0, 1, gray);      rgb = cmap(∇×V(x0)) * clamp(0, 1, gray);
41    }    }
42  }  }
43  grid(3) { LIC([lerp(0, 6.78, -0.5, xi, sizeX-0.5),  create_array { LIC([lerp(0, 6.78, -0.5, xi, sizeX-0.5),
44                   lerp(0, 3.72, -0.5, yi, sizeY-0.5)],                   lerp(0, 3.72, -0.5, yi, sizeY-0.5)],
45                   lerp(-1, 1, 0, si, 1))                   lerp(-1, 1, 0, si, 1))
46              | yi in 0..(sizeY-1), xi in 0..(sizeX-1),              | yi in 0..(sizeY-1), xi in 0..(sizeX-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