Builder/Builder/Common/plyfile.c
/******************************************************************************
Find an element from the element list of a given PLY object.

Entry:
  plyfile - file id for PLY file
  element - name of element we're looking for

Exit:
  returns the element, or NULL if not found
******************************************************************************/
Find an element from the element list of a given PLY object.
Entry:
plyfile - file id for PLY file
element - name of element we're looking for

returns the element, or NULL if not found
Find an element from the element list of a given PLY object . Entry : plyfile - file id for PLY file element - name of element we ' re looking for returns the element or NULL if not found
PlyElement *find_element(PlyFile *plyfile, char *element)
{
  int i;
  for (i = 0; i < plyfile->nelems; i++)
    if (equal_strings (element, plyfile->elems[i]->name))
      return (plyfile->elems[i]);
  return (NULL);
}
PlyElement * find_element ( PlyFile * plyfile , char * element ) { int i ; for ( i = 0 ; i < plyfile -> nelems ; i ++ ) if ( equal_strings ( element , plyfile -> elems [ i ] -> name ) ) return ( plyfile -> elems [ i ] ) ; return ( NULL ) ; }
Find an element from the element list of a given PLY object.
Find an element from the element list of a given PLY object .