1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192 |
- #ifndef _FEVtypes_h
- #define _FEVtypes_h
- #define TRUE -1
- #define FALSE 0
- /************vector row codes ***********/
- #define X 0
- #define Y 1
- #define Z 2
- /*********************general matrix types ***************/
- typedef double *dvec;
- typedef int *ivec;
- typedef double **dmat;
- typedef struct matrix {
- int fev_type;
- int r;
- int c;
- dmat mat;
- } *matrix_t;
- /*********************FEV ***************/
- #define FACE 10
- #define EDGE 11
- #define VERTEX 12
- #define MATRIX 13
- typedef struct vertex {
- int fev_type;
- int id;
- matrix_t vertex_coords;
- } *vertex_t;
- typedef struct edge {
- int fev_type;
- int id;
- vertex_t from_vertex;
- vertex_t to_vertex;
- struct edge *next_edge; /* for edge list */
- matrix_t direction;
- } *edge_t;
- typedef struct printable_e {
- int fev_type;
- int id;
- int from_v;
- int to_v;
- int next_edge;
- matrix_t direction;
- } *pr_edge_t;
- typedef struct face {
- int fev_type;
- int id;
- matrix_t norm_vec;
- edge_t next_edge; /* my edges */
- struct face *next_face; /* for face list*/
- } *face_t;
- typedef struct printable_f {
- int fev_type;
- int id;
- matrix_t norm_vec;
- int next_edge;
- int next_face;
- } *pr_face_t;
- /*******************extern hack wtf ***************/
- /*
- #define EXTERN extern
- */
- /* char *malloc();
- FILE *fopen(); */
- #endif
|