def getUnifiedOutput(outputs):
 if (len(outputs) < 1):
  return {'trianglemesh': {'vertex': [], 'face': []}}
 if (len(outputs) < 2):
  return outputs[0]
 return {'union': {'shapes': outputs}}

def getUnifiedOutput ( outputs ) : if ( len ( outputs ) < 1 ) : return { 'trianglemesh' : { 'vertex' : [ ] , 'face' : [ ] } } if ( len ( outputs ) < 2 ) : return outputs [ 0 ] return { 'union' : { 'shapes' : outputs } }
get unified output .