00001
00002
00003
00004
00005
00006
00013 #ifndef _EDGE_H_
00014 #define _EDGE_H_
00015
00016 #include "common_headers.h"
00017 #include "constants.h"
00018
00019
00020
00021
00022
00023
00032 struct Edge
00033 {
00034
00035
00036
00037
00038
00039
00040
00041
00042
00043
00044
00045
00046
00047 struct Vertex* vertex_in_edge[2];
00048
00049 #ifndef EDGE_LENGTH_NOT_NEEDED
00050
00051 float length;
00052
00053 #endif
00054
00055 int global_edge_number;
00056
00057 short is_edge_on_bdry;
00058
00059 };
00060
00061 void edge_init (struct Edge* ed);
00062
00063 #ifndef EDGE_LENGTH_NOT_NEEDED
00064
00065 void compute_length (struct Edge* ed);
00066
00067 #endif
00068
00069 void print_ed_debug_info (struct Edge* ed);
00070
00071 void output_edge (FILE* fp, struct Edge* ed);
00072
00073 #endif