-
Notifications
You must be signed in to change notification settings - Fork 1
/
he.h
61 lines (50 loc) · 1.77 KB
/
he.h
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
#define T He
typedef struct T T;
typedef struct HeRead HeRead;
int he_ini(HeRead *, T **);
int he_file_ini(const char *path, T **);
int he_tri_ini(int nv, int nt, int *tri, T **);
int he_merge2(T *, T *, T **);
int he_fin(T *);
int he_nv(T *); /* number of vert, edg, edg, hdg */
int he_nt(T *);
int he_ne(T *);
int he_nh(T *);
int he_nxt(T *, int h); /* return half-edg */
int he_flp(T *, int h);
int he_ver(T *, int h); /* return ver, tri, edg, or id */
int he_tri(T *, int h);
int he_edg(T *, int h);
long long he_id(T *, int h);
int he_hdg_ver(T *, int v); /* return half-edg */
int he_hdg_edg(T *, int e);
int he_hdg_tri(T *, int t);
int he_set_id(T *, int h, long long);
int he_swap_ver(T *, int, int);
int he_swap_tri(T *, int, int);
int he_swap_edg(T *, int, int);
int he_swap_hdg(T *, int, int);
int he_bnd(T *, int h); /* 1 for boundary */
int he_ijk(T *, int h, /**/ int *, int *, int *);
int he_tri_ijk(T *, int t, /**/ int *, int *, int *);
int he_edg_ij(T *, int e, /**/ int *, int *);
int he_dih_ijkl(T *, int e, /**/ int *, int *, int *, int *);
int he_edg_rotate(T *, int e); /* AKA flip edge */
int he_edg_split(T *, int e);
int he_tri_split(T *, int t);
int he_tri_split3(T *, int t);
int he_tri_join3(T *, int v); /* NB: vert */
int he_ver_delete4(T *, int v);
int he_ver_delete5(T *, int v);
int he_ver_delete6(T *, int v);
int he_ver_delete7(T *, int v);
int he_ver_delete8(T *, int v);
int he_E(T *, int **, int **);
int he_T(T *, int **, int **, int **);
int he_D(T *, int **, int **, int **, int **);
int he_bnd_ver(T *, int v);
int he_rank(T *, int v, /**/ int *n);
int he_ring(T *, int v, /**/ int *n, int **ring);
int he_hdg_ring(T *, int v, /**/ int *n, int **ring);
int he_tri_ring(T *, int v, /**/ int *n, int **ring);
#undef T