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

SCM Repository

[diderot] Diff of /branches/lamont/test/vr.diderot
ViewVC logotype

Diff of /branches/lamont/test/vr.diderot

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

revision 36, Thu Feb 11 01:04:40 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    }

Legend:
Removed from v.36  
changed lines
  Added in v.38

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