From 6c30a96f17e57ff8441cbc19306651d5d288301e Mon Sep 17 00:00:00 2001 From: Tim Redfern Date: Sun, 5 Feb 2012 22:35:15 +0000 Subject: ready to draw lines --- other/thoughts | 9 +++++++++ vodaviz.pde | 34 ++++++++++++++++++++++++++++++---- 2 files changed, 39 insertions(+), 4 deletions(-) diff --git a/other/thoughts b/other/thoughts index 2d74ed1..4371f39 100644 --- a/other/thoughts +++ b/other/thoughts @@ -35,3 +35,12 @@ geomerative? http://www.ricardmarxer.com/geomerative/ openframeworks? can output pdf? +a few countries need to be left out +ALASKA? not a country +AMERICAN SAMOA +ANTARCTICA + + +no calls anyway + + diff --git a/vodaviz.pde b/vodaviz.pde index 58c2348..f95ee14 100644 --- a/vodaviz.pde +++ b/vodaviz.pde @@ -74,6 +74,8 @@ class pointMapper { //screen plane at 0,0,100 //(dx-ex)(ez/dz) //(dy-ey)(ez/dz) + + //rotate camera return new RPoint(x*(100/z),y*(100/z)); } @@ -84,14 +86,21 @@ pointMapper shpmap; //RRectangle cb; int whichChild,numChildren; +String mode; + void setup(){ println("vodaviz v0.11"); RG.init(this); - size(832,220); //PDF, "testoutput.pdf"); //P3D); //832,220); //nb pdf is 800x600 + + mode="PDF"; + size(832,220); //,PDF, "testoutput.pdf"); //P3D); //832,220); //nb pdf is 800x600 + smooth(); float m = millis(); - shp = RG.loadShape("world_countries_outlines_split.svg"); + shp = RG.loadShape("world_countries_outlines_culled.svg"); //test_drawing.svg"); //world_countries_outlines_split.svg"); + + shpmap = new pointMapper(26,736,90,390); RG.ignoreStyles(); println("loaded svg in "+((millis()-m)*.001)+" seconds"); @@ -115,8 +124,24 @@ void draw() { //plot shapes at points for (int i=0;i