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

SCM Repository

[diderot] Diff of /branches/staging/test/iso2d-polyline/iso2d-polyline.diderot
ViewVC logotype

Diff of /branches/staging/test/iso2d-polyline/iso2d-polyline.diderot

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

revision 2253, Tue Mar 5 03:09:33 2013 UTC revision 2254, Tue Mar 5 19:42:46 2013 UTC
# Line 19  Line 19 
19      real isoval = 50.0 if F(pos) >= 40.0      real isoval = 50.0 if F(pos) >= 40.0
20                         else 30.0 if F(pos) >= 20.0                         else 30.0 if F(pos) >= 20.0
21                                   else 10.0;                                   else 10.0;
     int steps = 0;  
22      output vec2{} path = {pos};      output vec2{} path = {pos};
23    
24      update {      update {
25          // We bail if we're no longer inside or taken too many steps.          // We bail if we're no longer inside or taken too many steps.
26          if (!inside(pos, F) || steps > stepsMax) {          if (!inside(pos, F) || length(path) >= stepsMax) {
27              die;              die;
28          }          }
29          // GLKs recent changes (revision 1329) were made to make the code          // GLKs recent changes (revision 1329) were made to make the code
# Line 41  Line 40 
40          }          }
41          pos += delta;          pos += delta;
42          path = path@pos;          path = path@pos;
         steps += 1;  
43      }      }
44  }  }
45    

Legend:
Removed from v.2253  
changed lines
  Added in v.2254

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