Builder/Builder/Common/plyfile.c
/******************************************************************************
Specify which elements are going to be written.  This should be called
before a call to the routine ply_put_element().

Entry:
  plyfile   - file identifier
  elem_name - name of element we're talking about
******************************************************************************/
Specify which elements are going to be written.  This should be called
before a call to the routine ply_put_element().

plyfile   - file identifier
elem_name - name of element we're talking about
Specify which elements are going to be written . This should be called before a call to the routine ply_put_element () . plyfile - file identifier elem_name - name of element we ' re talking about
void ply_put_element_setup(PlyFile *plyfile, char *elem_name)
{
  PlyElement *elem;
  elem = find_element (plyfile, elem_name);
  if (elem == NULL) {
    fprintf(stderr, "ply_elements_setup: can't find element '%s'\n", elem_name);
    exit (-1);
  }
  plyfile->which_elem = elem;
}
void ply_put_element_setup ( PlyFile * plyfile , char * elem_name ) { PlyElement * elem ; elem = find_element ( plyfile , elem_name ) ; if ( elem == NULL ) { fprintf ( stderr , " \n " , elem_name ) ; exit ( -1 ) ; } plyfile -> which_elem = elem ; }
Specify which elements are going to be written.
Specify which elements are going to be written .