def write_mesh(fname, vertices, faces, normals, texcoords, name='', format='obj', overwrite=False, reshape_faces=True):
 if (op.isfile(fname) and (not overwrite)):
  raise IOError(('file "%s" exists, use overwrite=True' % fname))
 if (format not in 'obj'):
  raise ValueError('Only "obj" format writing currently supported')
 WavefrontWriter.write(fname, vertices, faces, normals, texcoords, name, reshape_faces)

def write_mesh ( fname , vertices , faces , normals , texcoords , name = '' , format = 'obj' , overwrite = False , reshape_faces = True ) : if ( op . isfile ( fname ) and ( not overwrite ) ) : raise IOError ( ( 'file "%s" exists, use overwrite=True' % fname ) ) if ( format not in 'obj' ) : raise ValueError ( 'Only "obj" format writing currently supported' ) WavefrontWriter . write ( fname , vertices , faces , normals , texcoords , name , reshape_faces )
write mesh data to file .