diff --git a/htroot/processing/domaingraph/domaingraph.pde b/htroot/processing/domaingraph/domaingraph.pde
index e79f083e7..5c38a76d9 100755
--- a/htroot/processing/domaingraph/domaingraph.pde
+++ b/htroot/processing/domaingraph/domaingraph.pde
@@ -13,8 +13,8 @@ import processing.net.*;
final float NODE_SIZE = 6;
final float EDGE_LENGTH = 50;
-final float EDGE_STRENGTH = 0.01;
-final float SPACER_STRENGTH = 10;
+final float EDGE_STRENGTH = 0.001;
+final float SPACER_STRENGTH = 500;
ParticleSystem physics;
Smoother3D centroid;
@@ -162,6 +162,22 @@ void keyPressed() {
return;
}
+ if ( key == 'd' ) {
+ HashSet hs = new HashSet();
+ for (int i = 0; i < physics.numberOfParticles(); ++i ) {
+ hs.add(physics.getParticle(i));
+ }
+ for (int i = 0; i < physics.numberOfSprings(); ++i ) {
+ hs.remove(physics.getSpring(i).getOneEnd());
+ hs.remove(physics.getSpring(i).getTheOtherEnd());
+ }
+ Iterator i = hs.iterator();
+ while (i.hasNext()) {
+ ((Particle) i.next()).kill();
+ }
+ return;
+ }
+
if ( key == ' ' ) {
Particle p = physics.makeParticle();
addRelation(p, physics.getParticle( (int) random( 0, physics.numberOfParticles()-1) ));
diff --git a/htroot/terminal_p.html b/htroot/terminal_p.html
index 90d494f2e..d586398dd 100755
--- a/htroot/terminal_p.html
+++ b/htroot/terminal_p.html
@@ -7,7 +7,7 @@
-
+