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

SCM Repository

[diderot] Diff of /branches/vis12/test/bug1.diderot
ViewVC logotype

Diff of /branches/vis12/test/bug1.diderot

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

revision 1858, Fri Apr 20 20:14:41 2012 UTC revision 1859, Fri Apr 20 20:15:10 2012 UTC
# Line 1  Line 1 
1  // Doesn't compile without the --exec option.  // Doesn't compile without the --exec option.
2  // It's a problem with the input function for p  // It's a problem with the input function for p
3  // Input seems to work for ints, but not reals or vecs.  // Input seems to work for ints, but not reals or vecs.
4    //
5    // Fixed [jhr; 2012-04-20]
6    
7    
8    input vec3 x = [0.0, 0.0, 0.0];
9  input real p = 2.5;  input real p = 2.5;
10    
11  strand R (int i, int j, int k)  strand R (int i, int j, int k)
12  {  {
13    
14      output vec3 t = [p * real(i), p * real(j), p * real(k)];      output vec3 t = [p * real(i), p * real(j), p * real(k)] + x;
15          update          update
16          {          {
17                  stabilize;                  stabilize;

Legend:
Removed from v.1858  
changed lines
  Added in v.1859

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