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

SCM Repository

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

View of /tests/lamont-tests/test-sphere2.diderot

Parent Directory Parent Directory | Revision Log Revision Log


Revision 4640 - (download) (annotate)
Tue Sep 27 20:54:47 2016 UTC (2 years, 8 months ago) by glk
File size: 361 byte(s)
initial result of svn export --username anonsvn --password=anonsvn https://svn.smlnj-gforge.cs.uchicago.edu/svn/diderot/branches/vis15/src/tests/
#version 2

const int N = 8;
input real queryRadius = 1.25;

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

    update {
	S[] neighbors = sphere (queryRadius);
	print(pos, ": ", { s.pos | s in neighbors }, "\n");
	numNeighbors = length (neighbors);
	stabilize;
    }

}

create_array { S(x, y) | x in 0..N-1, y in 0..N-1 }

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