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

SCM Repository

[diderot] View of /branches/vis15/src/tests/lamont-tests/test-sphere2.diderot
ViewVC logotype

View of /branches/vis15/src/tests/lamont-tests/test-sphere2.diderot

Parent Directory Parent Directory | Revision Log Revision Log


Revision 4497 - (download) (annotate)
Sat Sep 3 14:12:36 2016 UTC (2 years, 8 months ago) by jhr
File size: 259 byte(s)
  working on merge: updating tests with new version 2 syntax
#version 2

input real queryRadius = 1.25;

strand S (real x, real y)
{
    vec2 pos = [x, y];
    output int numNeighbors = 0;

    update {
	numNeighbors = length (sphere (queryRadius));
	stabilize;
    }

}

create_array { S(x, y) | x in 0..9, y in 0..9 }

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