Builder/Builder/Common/plyfile.c
/******************************************************************************
State how many of a given element will be written.

Entry:
  plyfile   - file identifier
  elem_name - name of element that information is being specified about
  nelems    - number of elements of this type to be written
******************************************************************************/
State how many of a given element will be written.
Entry:
plyfile   - file identifier
elem_name - name of element that information is being specified about
nelems    - number of elements of this type to be written
State how many of a given element will be written . Entry : plyfile - file identifier elem_name - name of element that information is being specified about nelems - number of elements of this type to be written
void ply_element_count(
  PlyFile *plyfile,
  char *elem_name,
  int nelems
)
{
  PlyElement *elem;
  elem = find_element (plyfile, elem_name);
  if (elem == NULL) {
    fprintf(stderr,"ply_element_count: can't find element '%s'\n",elem_name);
    exit (-1);
  }
  elem->num = nelems;
}
void ply_element_count ( PlyFile * plyfile , char * elem_name , int nelems ) { PlyElement * elem ; elem = find_element ( plyfile , elem_name ) ; if ( elem == NULL ) { fprintf ( stderr , " \n " , elem_name ) ; exit ( -1 ) ; } elem -> num = nelems ; }
State how many of a given element will be written.
State how many of a given element will be written .
/* look for appropriate element */