SCM Repository
[diderot] / trunk / test / vr.diderot |
Diff of /trunk/test/vr.diderot
Parent Directory
|
Revision Log
|
Patch
revision 37, Thu Feb 11 03:51:36 2010 UTC | revision 38, Thu Feb 11 03:51:54 2010 UTC | |
---|---|---|
# | Line 3 | Line 3 |
3 | // volume rendering example in Diderot | // volume rendering example in Diderot |
4 | // | // |
5 | ||
6 | input string dataFile; | input string dataFile; // name of dataset |
7 | input real stepSz; // size of steps | |
8 | ||
9 | image<3> img = load (dataFile); | image<3> img = load (dataFile); |
10 | ||
11 | actor RayCast (int row, int col) | |
12 | { | |
13 | vec<3> dir = (real(row), real(col)); | |
14 | vec<3> pos = (0.0, 0.0); | |
15 | vec<3> t = 0.0; | |
16 | ||
17 | update | |
18 | { | |
19 | pos = pos + t*dir; | |
20 | } | |
21 | ||
22 | } |
|
root@smlnj-gforge.cs.uchicago.edu | ViewVC Help |
Powered by ViewVC 1.0.0 |