def addXMLFromXYZ(depth, index, output, x, y, z):
 attributeDictionary = {'index': str(index)}
 if (x != 0.0):
  attributeDictionary['x'] = str(x)
 if (y != 0.0):
  attributeDictionary['y'] = str(y)
 if (z != 0.0):
  attributeDictionary['z'] = str(z)
 addClosedXMLTag(attributeDictionary, 'vertex', depth, output)

def addXMLFromXYZ ( depth , index , output , x , y , z ) : attributeDictionary = { 'index' : str ( index ) } if ( x != 0.0 ) : attributeDictionary [ 'x' ] = str ( x ) if ( y != 0.0 ) : attributeDictionary [ 'y' ] = str ( y ) if ( z != 0.0 ) : attributeDictionary [ 'z' ] = str ( z ) addClosedXMLTag ( attributeDictionary , 'vertex' , depth , output )
add xml from x .