commit | author | age
|
d7639a
|
1 |
#ifndef _TRIANGLE_H |
SP |
2 |
#define _TRIANGLE_H |
|
3 |
|
a2a676
|
4 |
ts_triangle_list *init_triangle_list(void); |
SP |
5 |
ts_triangle *triangle_add(ts_triangle_list *tlist, ts_vertex *vtx1, ts_vertex *vtx2, ts_vertex *vtx3); |
d7639a
|
6 |
|
SP |
7 |
/** Adds a neighbouring triangle in a list |
|
8 |
* @param *tria is a pointer to the triangle, to which additional member want to be added |
|
9 |
* @param *ntria is a pointer to neighbouring triangle |
|
10 |
* @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 |
|
11 |
*/ |
|
12 |
ts_bool triangle_add_neighbour(ts_triangle *tria, ts_triangle *ntria); |
|
13 |
ts_bool triangle_normal_vector(ts_triangle *tria); |
a2a676
|
14 |
ts_bool triangle_data_free(ts_triangle_data *triang); |
d7639a
|
15 |
ts_bool triangle_list_free(ts_triangle_list *tlist); |
SP |
16 |
|
|
17 |
#endif |