From b01cc1ac677dc712c27337be8ee4f11ea336f31b Mon Sep 17 00:00:00 2001
From: Samo Penic <samo@andromeda>
Date: Sun, 05 Dec 2010 13:02:22 +0000
Subject: [PATCH] Fixed some nasty bugs. Still, I suspect the vertex neighbours are not correctly oriented or something, since tristar triangles are not successfully set. (tristar_no is not always the same as neigh_no!)

---
 src/energy.c |    2 ++
 1 files changed, 2 insertions(+), 0 deletions(-)

diff --git a/src/energy.c b/src/energy.c
index 540686b..e30295b 100644
--- a/src/energy.c
+++ b/src/energy.c
@@ -13,6 +13,7 @@
 
     for(i=0;i<vlist->n;i++){
         energy_vertex(vtx[i]);
+        
     }
 
     return TS_SUCCESS;
@@ -38,6 +39,7 @@
         j=data->neigh[jj-1];
         jp=data->neigh[jjp-1];
         jm=data->neigh[jjm-1];
+//        printf("tristar_no=%u, neigh_no=%u, jj=%u\n",data->tristar_no,data->neigh_no,jj);
         jt=data->tristar[jj-1];
         x1=vtx_distance_sq(vtx,jp); //shouldn't be zero!
         x2=vtx_distance_sq(j,jp); // shouldn't be zero!

--
Gitblit v1.9.3