parameters: (verts, tris, outFileName)
docstring: write out an surf file from a list of vertices and triangles
docstring_summary: write out an surf file from a list of vertices and triangles
docstring_tokens: write out an surf file from a list of vertices and triangles
function: def writeSurf(verts, tris, outFileName):
      """write out an surf file from a list of vertices and triangles"""
      outFileName += '.surf'
      outfile = open(outFileName, 'w')
  
      # write header lines
      outfile.write('surfacemesh\n')
      outfile.write('%d\n' % (len(verts)))
  
      for vert in verts:
          #print "vert:", vert
          outfile.write('%g %g %g\n' % (vert[0], vert[1], vert[2]))
  
      outfile.write('%d\n' % (len(tris)))
  
      for tri in tris:
          outfile.write('%d %d %d\n' % (tri[0], tri[1], tri[2]))
  
      outfile.close()
function_tokens: def writeSurf ( verts , tris , outFileName ) : outFileName += '.surf' outfile = open ( outFileName , 'w' ) # write header lines outfile . write ( 'surfacemesh\n' ) outfile . write ( '%d\n' % ( len ( verts ) ) ) for vert in verts : #print "vert:", vert outfile . write ( '%g %g %g\n' % ( vert [ 0 ] , vert [ 1 ] , vert [ 2 ] ) ) outfile . write ( '%d\n' % ( len ( tris ) ) ) for tri in tris : outfile . write ( '%d %d %d\n' % ( tri [ 0 ] , tri [ 1 ] , tri [ 2 ] ) ) outfile . close ( )