From bb77ca8f6e18e5a3ee2996095db5394dcd49197a Mon Sep 17 00:00:00 2001
From: Samo Penic <samo@andromeda>
Date: Sat, 04 Dec 2010 14:31:17 +0000
Subject: [PATCH] Datastructure & basic functions rewritten. It seems there is no memory leaks in simple operations.

---
 src/triangle.h |   13 +++----------
 1 files changed, 3 insertions(+), 10 deletions(-)

diff --git a/src/triangle.h b/src/triangle.h
index 9643396..5735581 100644
--- a/src/triangle.h
+++ b/src/triangle.h
@@ -1,18 +1,11 @@
 #ifndef _TRIANGLE_H
 #define _TRIANGLE_H
 
-ts_bool init_triangle_list(ts_triangle_list *tlist);
-ts_bool clear_triangle_values(ts_triangle *triang,ts_uint idx);
-ts_bool triangle_add(ts_triangle_list *tlist, ts_vertex *vtx1, ts_vertex *vtx2, ts_vertex *vtx3);
-
-/** Adds a neighbouring triangle in a list
- *	@param *tria is a pointer to the triangle, to which additional member want to be added
- *	@param *ntria is a pointer to neighbouring triangle
- *	@returns TS_SUCCESS on success, TS_FAIL otherwise. If memory cannot be alloccated, this is considered as serious error and the execution is immediately terminated with error code returned to the underlying operating system
- */
+ts_triangle_list *init_triangle_list(void);
+ts_triangle *triangle_add(ts_triangle_list *tlist, ts_vertex *vtx1, ts_vertex *vtx2, ts_vertex *vtx3);
 ts_bool triangle_add_neighbour(ts_triangle *tria, ts_triangle *ntria);
 ts_bool triangle_normal_vector(ts_triangle *tria);
-ts_bool triangle_free(ts_triangle *triang);
+ts_bool triangle_data_free(ts_triangle_data *triang);
 ts_bool triangle_list_free(ts_triangle_list *tlist);
 
 #endif

--
Gitblit v1.9.3