From 913466726402512c4530dc3851b206f4292c3abd Mon Sep 17 00:00:00 2001 From: Tim Redfern Date: Thu, 26 Jan 2012 18:36:50 +0000 Subject: drawing a sphere --- vodaviz.pde | 43 +++++++++++++++++++++++++++++++++++++------ 1 file changed, 37 insertions(+), 6 deletions(-) diff --git a/vodaviz.pde b/vodaviz.pde index 8764aec..4540841 100644 --- a/vodaviz.pde +++ b/vodaviz.pde @@ -34,17 +34,17 @@ // --> this is kind of hidden. why? anyway, it should be possible to use it //another option is to use the OUTLINE of the country (as a purely geometric thing). - +import processing.pdf.*; import geomerative.*; RShape shp; - RRectangle cb; + //RRectangle cb; int whichChild,numChildren; void setup(){ println("vodaviz v0.11"); RG.init(this); - size(800,600); //832,220); + size(800,600,P3D); //,PDF, "testoutput.pdf"); //P3D); //832,220); smooth(); float m = millis(); @@ -59,11 +59,42 @@ void draw() { background(0,0,0); noFill(); stroke(255); - RG.shape(shp); + //strokeWeight(.1); + //RG.shape(shp); whichChild=(whichChild+1)%numChildren; - println("child "+whichChild+" of "+numChildren); + //println("child "+whichChild+" of "+numChildren); + + //cb=shp.children[whichChild].getBounds(); - cb=shp.children[whichChild].getBounds(); + //plot shapes at points + for (int i=0;i