Skip to content

Commit

Permalink
stronger forces
Browse files Browse the repository at this point in the history
  • Loading branch information
inorton committed Oct 11, 2010
1 parent e0df49e commit 57a00f8
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion GraphViewer/MainWindow.cs
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,10 @@ public MainWindow () : base(Gtk.WindowType.Toplevel)


Graph g = new Graph ();

Graph.CoulombConstant += 5;
Graph.SpringConstant += 5;

Node q1 = new Node ();
Node q2 = new Node ();
Node q3 = new Node ();
Expand Down Expand Up @@ -65,7 +69,7 @@ public void Render()
{
do {
lock ( area.ForceGraph ){
if ( area.ForceGraph.TotalKineticEnergy > 0.01 ){
if ( area.ForceGraph.TotalKineticEnergy > 0.0025 ){
area.ForceGraph.Compute( null );

Application.Invoke( delegate {
Expand Down

0 comments on commit 57a00f8

Please sign in to comment.