libDXF 0.0.1
A library with DXF related functions written in C.
|
00001 00036 #ifndef LIBDXF_SRC_VERTEX_H 00037 #define LIBDXF_SRC_VERTEX_H 00038 00039 00040 #include "global.h" 00041 00042 00043 #ifdef __cplusplus 00044 extern "C" { 00045 #endif 00046 00047 00078 typedef struct 00079 dxf_vertex_struct 00080 { 00081 /* Members common for all DXF drawable entities. */ 00082 int id_code; 00087 char *linetype; 00091 char *layer; 00095 double elevation; 00100 double thickness; 00104 double linetype_scale; 00107 int16_t visibility; 00114 int color; 00121 int paperspace; 00126 char *dictionary_owner_soft; 00129 char *dictionary_owner_hard; 00132 /* Specific members for a DXF vertex. */ 00133 double x0; 00136 double y0; 00139 double z0; 00142 double start_width; 00145 double end_width; 00148 double bulge; 00155 double curve_fit_tangent_direction; 00158 int flag; 00176 int polyface_mesh_vertex_index_1; 00181 int polyface_mesh_vertex_index_2; 00186 int polyface_mesh_vertex_index_3; 00191 int polyface_mesh_vertex_index_4; 00196 struct DxfVertex *next; 00199 } DxfVertex; 00200 00201 00202 DxfVertex *dxf_vertex_new (); 00203 DxfVertex *dxf_vertex_init (DxfVertex *vertex); 00204 DxfVertex *dxf_vertex_read (DxfFile *fp, DxfVertex *vertex); 00205 int dxf_vertex_write (DxfFile *fp, DxfVertex *vertex); 00206 int dxf_vertex_free (DxfVertex *vertex); 00207 void dxf_vertex_free_chain (DxfVertex *vertices); 00208 00209 00210 #ifdef __cplusplus 00211 } 00212 #endif 00213 00214 00215 #endif /* LIBDXF_SRC_VERTEX_H */ 00216 00217 00218 /* EOF */