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

SCM Repository

[diderot] Diff of /trunk/test/zslice-hess.diderot
ViewVC logotype

Diff of /trunk/test/zslice-hess.diderot

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

revision 1115, Thu May 5 04:42:18 2011 UTC revision 2636, Tue May 27 16:18:36 2014 UTC
# Line 4  Line 4 
4  vec3 orig = [0.0, 0.0, 5.0];  vec3 orig = [0.0, 0.0, 5.0];
5  vec3 cVec = [0.0, 1.0, 0.0];  vec3 cVec = [0.0, 1.0, 0.0];
6  vec3 rVec = [1.0, 0.0, 0.0];  vec3 rVec = [1.0, 0.0, 0.0];
7  image(3)[] img = load("../data/zimg11.nrrd");  image(3)[] img = image("../data/zimg11.nrrd");
8  field#2(3)[] F = img ⊛ bspln3;  field#2(3)[] F = img ⊛ bspln3;
9    
10  strand RayCast (int row, int col)  strand RayCast (int row, int col)
# Line 17  Line 17 
17      update      update
18      {      {
19          if (inside (pos,F)) {          if (inside (pos,F)) {
20              tensor[3,3] H = ∇(∇F)@pos;              tensor[3,3] H = ∇⊗∇F(pos);
21              val = trace(∇(∇F)@pos);              val = trace(∇⊗∇F(pos));
22              // can compare with following; tests subscripting              // can compare with following; tests subscripting
23              // val = H[0,0] + H[1,1] + H[2,2];              // val = H[0,0] + H[1,1] + H[2,2];
24          }          }

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

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