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

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