1 #define DWG_TYPE DWG_TYPE_VERTEX_2D
2 #include "common.c"
3
4 void
api_process(dwg_object * obj)5 api_process (dwg_object *obj)
6 {
7 int error;
8 double start_width, end_width, bulge, tangent_dir;
9 BITCODE_RC flag;
10 BITCODE_BL id;
11 dwg_point_3d point;
12
13 dwg_ent_vertex_2d *vertex_2d = dwg_object_to_VERTEX_2D (obj);
14
15 CHK_ENTITY_TYPE_W_OLD (vertex_2d, VERTEX_2D, flag, RC);
16 CHK_ENTITY_3RD_W_OLD (vertex_2d, VERTEX_2D, point);
17 CHK_ENTITY_TYPE_W_OLD (vertex_2d, VERTEX_2D, start_width, BD);
18 CHK_ENTITY_TYPE_W_OLD (vertex_2d, VERTEX_2D, end_width, BD);
19 CHK_ENTITY_TYPE_W_OLD (vertex_2d, VERTEX_2D, bulge, BD);
20 CHK_ENTITY_TYPE_W_OLD (vertex_2d, VERTEX_2D, tangent_dir, BD);
21 CHK_ENTITY_TYPE (vertex_2d, VERTEX_2D, id, BL);
22 }
23