def addVertexes(geometryOutput, vertexes):
 if (geometryOutput.__class__ == list):
  for element in geometryOutput:
   addVertexes(element, vertexes)
  return
 if (geometryOutput.__class__ != dict):
  return
 for geometryOutputKey in geometryOutput.keys():
  geometryOutputValue = geometryOutput[geometryOutputKey]
  if (geometryOutputKey == 'vertex'):
   for vertex in geometryOutputValue:
    vertexes.append(vertex)
  else:
   addVertexes(geometryOutputValue, vertexes)

def addVertexes ( geometryOutput , vertexes ) : if ( geometryOutput . __class__ == list ) : for element in geometryOutput : addVertexes ( element , vertexes ) return if ( geometryOutput . __class__ != dict ) : return for geometryOutputKey in geometryOutput . keys ( ) : geometryOutputValue = geometryOutput [ geometryOutputKey ] if ( geometryOutputKey == 'vertex' ) : for vertex in geometryOutputValue : vertexes . append ( vertex ) else : addVertexes ( geometryOutputValue , vertexes )
add the vertexes .