commit | author | age
|
d7639a
|
1 |
#ifndef _VERTEX_H |
SP |
2 |
#define _VERTEX_H |
|
3 |
|
|
4 |
/** @brief Creates initial vertex list |
|
5 |
* |
|
6 |
* Allocates memory and initializes the vertices. |
|
7 |
* @param vertex is a structure holding information about |
|
8 |
* vertices |
|
9 |
* @param N is a number of vertices that are used in simulation |
|
10 |
* @param zero_them is boolean value. 0 skip setting zeros to idx |
|
11 |
* and (x,y,z) coordinates for each points, 1 means to zero all |
|
12 |
* information on points > 1 requests zeroing of coordinates and |
|
13 |
* indexing the vertexes 0..N-1. |
|
14 |
* @returns ts_bool value 1 on success, 0 otherwise |
|
15 |
*/ |
|
16 |
ts_vertex **init_vertex_list(ts_uint N); |
|
17 |
ts_vertex *init_vertex(ts_uint idx); |
|
18 |
ts_bool vtx_add_neighbour(ts_vertex **vtx, ts_vertex **nvtx); |
|
19 |
ts_bool vtx_free(ts_vertex **vtx); |
|
20 |
#endif |