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

SCM Repository

[diderot] Diff of /branches/charisee_dev/examples/dti/dti-vr-byhand.diderot
ViewVC logotype

Diff of /branches/charisee_dev/examples/dti/dti-vr-byhand.diderot

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

revision 3306, Fri Oct 16 19:23:34 2015 UTC revision 3307, Fri Oct 16 19:41:04 2015 UTC
# Line 1  Line 1 
   
1  input real isoval = 0.5;  input real isoval = 0.5;
2  input real thick = 0.8;  input real thick = 0.8;
   
   
3  field#2(3)[3,3] V = bspln3 ⊛ image("../ertest/data/tball.nrrd");  field#2(3)[3,3] V = bspln3 ⊛ image("../ertest/data/tball.nrrd");
4  field#0(3)[3,3,3] G=∇⊗V;  field#0(3)[3,3,3] G=∇⊗V;
   
   
   
5  field#2(3)[3] hackRGB = bspln3 ⊛ image("../data/const-curl3d.nrrd");  field#2(3)[3] hackRGB = bspln3 ⊛ image("../data/const-curl3d.nrrd");
6  function vec3 color(vec3 x) = hackRGB(x);  function vec3 color(vec3 x) = hackRGB(x);
   
   
7  vec3 cutVec = [-1,-0.03,0.02];  vec3 cutVec = [-1,-0.03,0.02];
8  real cutPos = -1.5;  real cutPos = -1.5;
   
9  real refStep = 1;  real refStep = 1;
   
 // set camera, image, and rendering parameters  
10  input vec3 camEye = [440.499, 66.673, 175.265];  input vec3 camEye = [440.499, 66.673, 175.265];
11  input vec3 camAt = [69.6939, 103.067, 41.4651];  input vec3 camAt = [69.6939, 103.067, 41.4651];
12  input vec3 camUp = [-0.0808311, 0.0976636, 0.991932];  input vec3 camUp = [-0.0808311, 0.0976636, 0.991932];
# Line 30  Line 19 
19  input real phongKd = 0.7;  input real phongKd = 0.7;
20  input real rayStep = 0.4;  input real rayStep = 0.4;
21  input vec3 lightVsp = [-2.0, -2.5, -8.0];  input vec3 lightVsp = [-2.0, -2.5, -8.0];
   
 // (boilerplate) computation of camera and light info  
22  real camDist = |camAt - camEye|;  real camDist = |camAt - camEye|;
23  real camNear = camNearAtRel + camDist;  real camNear = camNearAtRel + camDist;
24  real camFar = camFarAtRel + camDist;  real camFar = camFarAtRel + camDist;
# Line 69  Line 56 
56     tensor[3,3,3] t3= g-t2⊗identity[3]/3;     tensor[3,3,3] t3= g-t2⊗identity[3]/3;
57      real t4=|E|;      real t4=|E|;
58  tensor [3] t5=(1/2)*(t3:E +E:t3)/(E:E);  tensor [3] t5=(1/2)*(t3:E +E:t3)/(E:E);
   
59  val=sqrt(3.0/2.0)*t4/m - isoval;  val=sqrt(3.0/2.0)*t4/m - isoval;
   
60  real t8=sqrt(3.0/2.0);  real t8=sqrt(3.0/2.0);
61    vec3 t6 =(m*t5);    vec3 t6 =(m*t5);
62    vec3 t7 = (t4*t1);    vec3 t7 = (t4*t1);

Legend:
Removed from v.3306  
changed lines
  Added in v.3307

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