SCM Repository
[diderot] Diff of /branches/vis12/test/bug1.diderot
Diff of /branches/vis12/test/bug1.diderot
Parent Directory
|
Revision Log
|
Patch
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 |
|
|