def _read_vertex_array(filename):
 with open(filename, 'r') as fp:
  vertex_list = []
  for l in fp.readlines():
   sl = l.split()
   if (not (len(sl) == 9)):
    continue
   vl = [float(x) for x in sl[0:3]]
   vertex_list.append(vl)
 return numpy.array(vertex_list)

def _read_vertex_array ( filename ) : with open ( filename , 'r' ) as fp : vertex_list = [ ] for l in fp . readlines ( ) : sl = l . split ( ) if ( not ( len ( sl ) == 9 ) ) : continue vl = [ float ( x ) for x in sl [ 0 : 3 ] ] vertex_list . append ( vl ) return numpy . array ( vertex_list )
read the vertex list into a numeric array .