From aec47dec1b43faa9cd7ad12821d85882a79aa5a6 Mon Sep 17 00:00:00 2001
From: Samo Penic <samo.penic@fe.uni-lj.si>
Date: Wed, 29 Dec 2010 22:11:05 +0000
Subject: [PATCH] Prepared for bonflip and vertexmove.

---
 src/triangle.c |    9 ++++++---
 1 files changed, 6 insertions(+), 3 deletions(-)

diff --git a/src/triangle.c b/src/triangle.c
index 959205a..a41f3b5 100644
--- a/src/triangle.c
+++ b/src/triangle.c
@@ -72,7 +72,8 @@
   * Add the neigbour to the list of neighbouring triangles. The
   * neighbouring triangles are those, who share two vertices. Function resizes
   * the list and adds the pointer to neighbour. It receives two arguments of
-  * ts_triangle type. It then adds eachother to eachother's list. Upon
+  * ts_triangle type. It then adds second triangle to the list of first
+  * triangle, but not the opposite. Upon
   * success it returns TS_SUCCESS, upon detecting NULL pointers 
   * returns TS_FAIL and it FATALY ends when the data structure
   * cannot be resized.
@@ -98,13 +99,15 @@
 	if(tria->data->neigh == NULL)
 			fatal("Reallocation of memory failed during insertion of triangle neighbour in triangle_add_neighbour",3);
 	tria->data->neigh[tria->data->neigh_no-1]=ntria;
-   
+  
+ 
 /* we repeat the procedure for the neighbour */  
-	ntria->data->neigh_no++;
+/*	ntria->data->neigh_no++;
 	ntria->data->neigh=realloc(ntria->data->neigh,ntria->data->neigh_no*sizeof(ts_triangle *));
 	if(ntria->data->neigh == NULL)
 			fatal("Reallocation of memory failed during insertion of triangle neighbour in triangle_add_neighbour",3);
 	ntria->data->neigh[ntria->data->neigh_no-1]=tria;
+*/
 	return TS_SUCCESS;
 }
 

--
Gitblit v1.9.3