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

SCM Repository

[diderot] View of /branches/vis12/bugs/open/bug025.diderot
ViewVC logotype

View of /branches/vis12/bugs/open/bug025.diderot

Parent Directory Parent Directory | Revision Log Revision Log


Revision 2334 - (download) (annotate)
Thu Apr 4 16:15:56 2013 UTC (6 years, 5 months ago) by glk
File size: 1017 byte(s)
more bugs
vec2 {} x0s = load("../data/seeds.txt");
int x0num = length(x0s);
real h = 0.02;
int stepNum = 130;
input real arrow = 0.4;

field#1(2)[2] V = bspln3 ⊛ image("../data/flow.nrrd");
field#1(2)[2] ins = bspln3 ⊛ image("../data/flow-crop.nrrd");

strand sline (int ii, vec2 x0) {
  int step = 0;
  vec2 xb = x0;
/*
  vec2 b1 = x0; // BUG: had to make these strand varialbes; couldn't be local to stabilize
  vec2 b2 = x0;
*/
  output vec2{} path = {x0};

  update {
    if (inside(xb, ins))
      xb -= h*V(xb - 0.5*h*V(xb));
    /* BUG: prepending to a sequence does not actually work. Apparently it was
        never actually tested, at all?
      Undefined symbols for architecture x86_64:
        "_Diderot_DynSeqPrepend", referenced from:
            _sline_Update in bug025.o
     ld: symbol(s) not found for architecture x86_64
    */
    if (inside(xb, ins))
      path = xb @ path;
    step += 1;
    if (step == stepNum) {
      stabilize;
    }
  }
}

initially [ sline(ii, x0s{ii}) | ii in 0..x0num-1 ];

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