Trisurf Monte Carlo simulator
Samo Penic
2016-03-15 6e42ef0edaba59fd344e89ffd469202ff2bd39ac
commit | author | age
7f6076 1 /* vim: set ts=4 sts=4 sw=4 noet : */
d7639a 2 #ifndef _VERTEX_H
SP 3 #define _VERTEX_H
4
ea1cce 5 ts_bool vertex_list_assign_id(ts_vertex_list *vlist, ts_uint id);
M 6
d7639a 7 /** @brief Creates initial vertex list
SP 8  *  
9  *  Allocates memory and initializes the vertices.
10  *    @param vertex is a structure holding information about 
11  *      vertices
12  *    @param N is a number of vertices that are used in simulation
13  *    @param zero_them is boolean value. 0 skip setting zeros to idx 
14  *      and (x,y,z) coordinates for each points, 1 means to zero all 
15  *      information on points > 1 requests zeroing of coordinates and 
a2a676 16  *      indexing the vertices 0..N-1.
d7639a 17  *    @returns ts_bool value 1 on success, 0 otherwise
SP 18 */
73f967 19 ts_vertex_list *init_vertex_list(ts_uint N);
737714 20 ts_bool vtx_add_neighbour(ts_vertex *vtx, ts_vertex *nvtx);
a10dd5 21 ts_bool vtx_add_cneighbour(ts_bond_list *blist,ts_vertex *vtx1,ts_vertex *vtx2);
SP 22 ts_bool vtx_add_bond(ts_bond_list *blist,ts_vertex *vtx1,ts_vertex *vtx2);
a2a676 23 ts_bool vtx_remove_neighbour(ts_vertex *vtx, ts_vertex *nvtx);
737714 24 ts_bool vtx_free(ts_vertex *vtx);
73f967 25 ts_bool vtx_list_free(ts_vertex_list *vlist);
bb77ca 26 inline ts_double vtx_distance_sq(ts_vertex *vtx1, ts_vertex *vtx2);
7958e9 27 ts_bool vtx_set_global_values(ts_vesicle *vesicle);
SP 28 inline ts_double vtx_direct(ts_vertex *vtx1, ts_vertex *vtx2, ts_vertex *vtx3);
29 inline ts_bool vertex_add_tristar(ts_vertex *vtx, ts_triangle *tristarmem);
30ee9c 30 inline ts_bool vtx_insert_neighbour(ts_vertex *vtx, ts_vertex *nvtx, ts_vertex *vtxm);
SP 31 inline ts_bool vtx_remove_tristar(ts_vertex *vtx, ts_triangle *tristar);
b01cc1 32 ts_bool vtx_copy(ts_vertex *cvtx,ts_vertex *ovtx);
dac2e5 33 ts_bool vtx_duplicate(ts_vertex *cvtx, ts_vertex *ovtx);
f74313 34 ts_vertex **vtx_neigh_copy(ts_vertex_list *vlist,ts_vertex *ovtx);
SP 35 ts_vertex_list *vertex_list_copy(ts_vertex_list *ovlist);
dcf17d 36
d7639a 37 #endif