Thank you, this make more sense. I was passing vertices not polygon indexes and was calling MDATA_LOOP_SELECTION_TYPE instead of MDATA_LOOP_SELECTION.