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 |
a2a676
|
13 |
* indexing the vertices 0..N-1. |
d7639a
|
14 |
* @returns ts_bool value 1 on success, 0 otherwise |
SP |
15 |
*/ |
73f967
|
16 |
ts_vertex_list *init_vertex_list(ts_uint N); |
737714
|
17 |
ts_vertex_data *init_vertex_data(void); |
SP |
18 |
ts_bool vtx_add_neighbour(ts_vertex *vtx, ts_vertex *nvtx); |
a10dd5
|
19 |
ts_bool vtx_add_cneighbour(ts_bond_list *blist,ts_vertex *vtx1,ts_vertex *vtx2); |
SP |
20 |
ts_bool vtx_add_bond(ts_bond_list *blist,ts_vertex *vtx1,ts_vertex *vtx2); |
a2a676
|
21 |
ts_bool vtx_remove_neighbour(ts_vertex *vtx, ts_vertex *nvtx); |
737714
|
22 |
ts_bool vtx_data_free(ts_vertex_data *data); |
SP |
23 |
ts_bool vtx_free(ts_vertex *vtx); |
73f967
|
24 |
ts_bool vtx_list_free(ts_vertex_list *vlist); |
bb77ca
|
25 |
inline ts_double vtx_distance_sq(ts_vertex *vtx1, ts_vertex *vtx2); |
7958e9
|
26 |
ts_bool vtx_set_global_values(ts_vesicle *vesicle); |
SP |
27 |
inline ts_double vtx_direct(ts_vertex *vtx1, ts_vertex *vtx2, ts_vertex *vtx3); |
|
28 |
inline ts_bool vertex_add_tristar(ts_vertex *vtx, ts_triangle *tristarmem); |
f74313
|
29 |
|
SP |
30 |
ts_vertex *vtx_copy(ts_vertex *ovtx); |
|
31 |
ts_vertex **vtx_neigh_copy(ts_vertex_list *vlist,ts_vertex *ovtx); |
|
32 |
ts_vertex_list *vertex_list_copy(ts_vertex_list *ovlist); |
|
33 |
|
d7639a
|
34 |
#endif |