Builder/Builder/Common/plyfile.c
/******************************************************************************
Write out the "other" elements specified for this PLY file.

Entry:
  plyfile - pointer to PLY file to write out other elements for
******************************************************************************/
Write out the "other" elements specified for this PLY file.
Entry:
plyfile - pointer to PLY file to write out other elements for
Write out the " other " elements specified for this PLY file . Entry : plyfile - pointer to PLY file to write out other elements for
void ply_put_other_elements (PlyFile *plyfile)
{
  int i,j;
  OtherElem *other;
  if (plyfile->other_elems == NULL)
    return;
  for (i = 0; i < plyfile->other_elems->num_elems; i++) {
    other = &(plyfile->other_elems->other_list[i]);
    ply_put_element_setup (plyfile, other->elem_name);
    for (j = 0; j < other->elem_count; j++)
      ply_put_element (plyfile, (void *) other->other_data[j]);
  }
}
void ply_put_other_elements ( PlyFile * plyfile ) { int i , j ; OtherElem * other ; if ( plyfile -> other_elems == NULL ) return ; for ( i = 0 ; i < plyfile -> other_elems -> num_elems ; i ++ ) { other = & ( plyfile -> other_elems -> other_list [ i ] ) ; ply_put_element_setup ( plyfile , other -> elem_name ) ; for ( j = 0 ; j < other -> elem_count ; j ++ ) ply_put_element ( plyfile , ( void * ) other -> other_data [ j ] ) ; } }
Write out the "other" elements specified for this PLY file.
Write out the " other " elements specified for this PLY file .
/* make sure we have other elements to write */ /* write out the data for each "other" element */ /* write out each instance of the current element */