parameters: (text)
return_statement: return { 'v':v, 't':t, 'n':n }
docstring: Parse text chunk specifying single vertex.
  
      Possible formats:
          vertex index
          vertex index / texture index
          vertex index / texture index / normal index
          vertex index / / normal index
docstring_summary: Parse text chunk specifying single vertex.
docstring_tokens: Parse text chunk specifying single vertex .
function: def parse_vertex(text):
      """Parse text chunk specifying single vertex.
  
      Possible formats:
          vertex index
          vertex index / texture index
          vertex index / texture index / normal index
          vertex index / / normal index
      """
  
      v = 0
      t = 0
      n = 0
  
      chunks = text.split("/")
  
      v = int(chunks[0])
      if len(chunks) > 1:
          if chunks[1]:
              t = int(chunks[1])
      if len(chunks) > 2:
          if chunks[2]:
              n = int(chunks[2])
  
      return { 'v':v, 't':t, 'n':n }
function_tokens: def parse_vertex ( text ) : v = 0 t = 0 n = 0 chunks = text . split ( "/" ) v = int ( chunks [ 0 ] ) if len ( chunks ) > 1 : if chunks [ 1 ] : t = int ( chunks [ 1 ] ) if len ( chunks ) > 2 : if chunks [ 2 ] : n = int ( chunks [ 2 ] ) return { 'v' : v , 't' : t , 'n' : n }