def _get_output(algorithm, iport=0, iconnection=0, oport=0, active_scalar=None,
                active_scalar_field='point'):
    """A helper to get the algorithm's output and copy input's vtki meta info"""
    ido = algorithm.GetInputDataObject(iport, iconnection)
    data = wrap(algorithm.GetOutputDataObject(oport))
    data.copy_meta_from(ido)
    if active_scalar is not None:
        data.set_active_scalar(active_scalar, preference=active_scalar_field)
    return data
def _get_output ( algorithm , iport = 0 , iconnection = 0 , oport = 0 , active_scalar = None , active_scalar_field = 'point' ) : ido = algorithm . GetInputDataObject ( iport , iconnection ) data = wrap ( algorithm . GetOutputDataObject ( oport ) ) data . copy_meta_from ( ido ) if active_scalar is not None : data . set_active_scalar ( active_scalar , preference = active_scalar_field ) return data
A helper to get the algorithm's output and copy input's vtki meta info