From 523bf18206f550a315c6c17e5a0a253381b0f8bf Mon Sep 17 00:00:00 2001 From: Samo Penic <samo.penic@fe.uni-lj.si> Date: Thu, 07 Jun 2012 11:16:16 +0000 Subject: [PATCH] Spherical harmonics. Almost everyhing is done. Missing triangle area calculation when vertex is moved or bond is flipped. Also missing volume calculation on vertex move or bondflip. Calculation of co coefficient is not done completely yet. Problems are in numbering the coefficients. Newly added data structure ts_spharm is referenced from ts_vesicle. Missing function for initialization and freeing the memory of that datastructure -- but that memory is already used by some functions. --- src/vertex.h | 17 ++++++++++++++--- 1 files changed, 14 insertions(+), 3 deletions(-) diff --git a/src/vertex.h b/src/vertex.h index bceeb1c..98efff5 100644 --- a/src/vertex.h +++ b/src/vertex.h @@ -10,13 +10,24 @@ * @param zero_them is boolean value. 0 skip setting zeros to idx * and (x,y,z) coordinates for each points, 1 means to zero all * information on points > 1 requests zeroing of coordinates and - * indexing the vertexes 0..N-1. + * indexing the vertices 0..N-1. * @returns ts_bool value 1 on success, 0 otherwise */ ts_vertex_list *init_vertex_list(ts_uint N); -ts_vertex_data *init_vertex_data(void); ts_bool vtx_add_neighbour(ts_vertex *vtx, ts_vertex *nvtx); -ts_bool vtx_data_free(ts_vertex_data *data); +ts_bool vtx_add_cneighbour(ts_bond_list *blist,ts_vertex *vtx1,ts_vertex *vtx2); +ts_bool vtx_add_bond(ts_bond_list *blist,ts_vertex *vtx1,ts_vertex *vtx2); +ts_bool vtx_remove_neighbour(ts_vertex *vtx, ts_vertex *nvtx); ts_bool vtx_free(ts_vertex *vtx); ts_bool vtx_list_free(ts_vertex_list *vlist); +inline ts_double vtx_distance_sq(ts_vertex *vtx1, ts_vertex *vtx2); +ts_bool vtx_set_global_values(ts_vesicle *vesicle); +inline ts_double vtx_direct(ts_vertex *vtx1, ts_vertex *vtx2, ts_vertex *vtx3); +inline ts_bool vertex_add_tristar(ts_vertex *vtx, ts_triangle *tristarmem); + +ts_bool vtx_copy(ts_vertex *cvtx,ts_vertex *ovtx); +ts_bool vtx_duplicate(ts_vertex *cvtx, ts_vertex *ovtx); +ts_vertex **vtx_neigh_copy(ts_vertex_list *vlist,ts_vertex *ovtx); +ts_vertex_list *vertex_list_copy(ts_vertex_list *ovlist); + #endif -- Gitblit v1.9.3