1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889 |
- #ifndef FEV_h
- #define _FEV_h
- /***************important matrix macro************/
- #define e(m,i,j) m->mat[i][j]
- /***************external matrix**************/
- extern dvec dvector(int);
- extern void dvec_free(dvec);
- extern matrix_t mat_mpy(matrix_t, matrix_t);
- extern matrix_t mat_add(matrix_t, matrix_t, int);
- extern matrix_t mat_frd(char*);
- extern matrix_t mat_new(int, int);
- extern int dvec_pr();
- extern int mat_pr(char*, matrix_t, FILE*);
- extern void mat_free(matrix_t);
- extern void cberror(char*);
- /***************external FEV**************/
- extern vertex_t get_v_arr();
- extern pr_edge_t get_e_arr();
- extern pr_face_t get_f_arr();
- extern int reset(char);
- extern vertex_t new_vert(double, double, double);
- extern edge_t new_edge(vertex_t, vertex_t);
- extern face_t new_face (edge_t[], int);
- extern face_t new_tetrahedron();
- extern int vert_fr(vertex_t);
- extern int edge_fr(edge_t, int);
- extern int face_fr(face_t, int);
- extern int vert_pr(char*, vertex_t, FILE*);
- extern int edge_pr(char*, edge_t);
- extern int face_pr(char*, face_t);
- extern int short_vert_pr(vertex_t);
- extern int short_edge_pr(edge_t);
- extern int short_face_pr(face_t);
- extern int short_poly_pr(face_t);
- extern pr_edge_t new_print_edge(edge_t);
- extern pr_face_t new_print_face(face_t);
- extern int pr_edge_fr(pr_edge_t, int);
- extern int pr_face_fr(pr_face_t, int, int);
- extern int pr_edge_pr(char*, pr_edge_t, FILE*);
- extern int pr_face_pr(char*, pr_face_t, FILE*);
- extern int short_pr_edge_pr(pr_edge_t);
- extern int short_pr_face_pr(pr_face_t);
- extern vertex_t vert_read(FILE*);
- extern int printificate(face_t, char*);
- extern face_t readificate(char*);
- /*****************basics ****************/
- #define max(x,y) x>y?x:y
- #define min(x,y) x>y?y:x
- /* #define abs(x) x>0?x:-x */
- #define deg_to_rad ( (double) M_PI/180.0)
- /**********error codes***************/
- #define OK 1
- #define MALLOC 0
- #define NILARG1 -1
- #define NILARG2 -2
- #define NILARG3 -3
- #define NILARG4 -4
- #define SINGULAR -5
- #define NONSQUARE -6
- #define NONCONFORM -7
- #define NONAFFINE -8
- #endif
|