def addVertexToAttributeDictionary(attributeDictionary, vertex):
 if (vertex.x != 0.0):
  attributeDictionary['x'] = str(vertex.x)
 if (vertex.y != 0.0):
  attributeDictionary['y'] = str(vertex.y)
 if (vertex.z != 0.0):
  attributeDictionary['z'] = str(vertex.z)

def addVertexToAttributeDictionary ( attributeDictionary , vertex ) : if ( vertex . x != 0.0 ) : attributeDictionary [ 'x' ] = str ( vertex . x ) if ( vertex . y != 0.0 ) : attributeDictionary [ 'y' ] = str ( vertex . y ) if ( vertex . z != 0.0 ) : attributeDictionary [ 'z' ] = str ( vertex . z )
add to the attribute dictionary .