(root)/
libredwg-0.13/
test/
unit-testing/
vertex_pface_face.c
       1  #define DWG_TYPE DWG_TYPE_VERTEX_PFACE_FACE
       2  #include "common.c"
       3  
       4  void
       5  api_process (dwg_object *obj)
       6  {
       7    int error;
       8    BITCODE_BS vertind[4];
       9    dwg_point_3d pt;
      10  
      11    dwg_ent_vert_pface_face *ent = dwg_object_to_VERTEX_PFACE_FACE (obj);
      12  
      13    if (!dwg_dynapi_entity_value (ent, "VERTEX_PFACE_FACE", "vertind", &vertind,
      14                                  NULL))
      15      fail ("dwg_dynapi_entity_value");
      16    else
      17      for (int i = 0; i < 4; i++)
      18        {
      19          if (vertind[i] == ent->vertind[i])
      20            ok ("vertind[%d]: " FORMAT_BS, i, vertind[i]);
      21          else
      22            fail ("vertind[%d] " FORMAT_BS " != ent->vertind[i] " FORMAT_BS, i,
      23                  vertind[i], ent->vertind[i]);
      24        }
      25  }