SCM Repository
Diff of /examples/iso2d-demo/iso2d.diderot
Parent Directory
|
Revision Log
|
Patch
revision 2078, Mon Nov 5 12:00:48 2012 UTC | revision 2079, Mon Nov 5 12:50:51 2012 UTC | |
---|---|---|
# | Line 10 | Line 10 |
10 | int gridSize = 300; | int gridSize = 300; |
11 | image(2)[] diderot = image("data/ddro-80.nrrd"); | image(2)[] diderot = image("data/ddro-80.nrrd"); |
12 | field#1(2)[] F = ctmr ⊛ diderot; | field#1(2)[] F = ctmr ⊛ diderot; |
13 | input int stepsMax = 12; | input int stepsMax = 50; |
14 | input real stepScale = 1.0; | |
15 | real epsilon = 0.0001; | real epsilon = 0.0001; |
16 | ||
17 | strand sample (int ui, int vi) { | strand sample (int ui, int vi) { |
# | Line 36 | Line 37 |
37 | if (|delta| < epsilon) { // we've converged if step is small enough | if (|delta| < epsilon) { // we've converged if step is small enough |
38 | stabilize; | stabilize; |
39 | } | } |
40 | pos += delta; | pos += stepScale * delta; |
41 | steps += 1; | steps += 1; |
42 | } | } |
43 | } | } |
|
root@smlnj-gforge.cs.uchicago.edu | ViewVC Help |
Powered by ViewVC 1.0.0 |