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

SCM Repository

[diderot] Annotation of /branches/vis12/rtest2/tests/crossField3-x1/crossField3-x1.diderot
ViewVC logotype

Annotation of /branches/vis12/rtest2/tests/crossField3-x1/crossField3-x1.diderot

Parent Directory Parent Directory | Revision Log Revision Log


Revision 3198 - (view) (download)

1 : cchiw 2863
2 :    
3 :     int imgSizeX = 16;
4 :     int imgSizeY = 16;
5 :     int imgSizeZ = 16;
6 :    
7 : jhr 3198 field#2(3)[3] F= image("../../data/const-curl3d.nrrd") ⊛ bspln3;
8 : cchiw 2863
9 :     strand CURL (int xi, int yi, int zi) {
10 :     real xx = lerp(2.00, 17.0, 0.0, real(xi), real(imgSizeX)-1.0);
11 :     real yy = lerp(2.00, 17.0, 0.0, real(yi), real(imgSizeY)-1.0);
12 :     real zz = lerp(2.00, 17.0, 0.0, real(zi), real(imgSizeZ)-1.0);
13 :     vec3 pos = [xx,yy,zz];
14 :    
15 :     output tensor[3] out= F(pos)×F(pos);
16 :     update
17 :     {
18 :    
19 :     stabilize;
20 :     }
21 :     }
22 :    
23 :     initially [ CURL(xi, yi, zi) | zi in 0..imgSizeX-1, yi in 0..imgSizeY-1, xi in 0..imgSizeZ-1 ];

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