/* ---------------------------------------------- Computing Kaizen Studio Advanced Studio VI Spring 2010 Columbia University GSAPP Subdividing Bodies Code by Nikolas Stutzin http://www.arch.columbia.edu/ http://proxyarch.com/kaizen This work is licensed under a Creative Commons Attribution-Noncommercial-Share Alike 3.0 License -----------------------------------------------*/ import traer.physics.*; float touchThresh = 50; Graph myGraph; ParticleSystem physics; int counter; PVector center; PVector[] arrPoints; int condist = 100; int seeds = 12; float area = 10000; boolean changed = true; void setup(){ size(600,450, P3D); reset(); } void reset(){ counter = 0; physics = new ParticleSystem(0,0,.5, 2); myGraph = new Graph( physics ); for(int i=0; i 100){ float sx = screenX(theNode.x, theNode.y, theNode.z); float sy = screenY(theNode.x, theNode.y, theNode.z); PVector screenPoint = new PVector(sx,sy); if(screenPoint.dist(blobCenter) < touchThresh){ theNode.branch(2); } } } //CONNECTIONS Node[] current = new Node[0]; for(int i=0; i