Precalculate ROIFlags for the modified TriangleROI, the indices will either be overlay normal element IDs, or vertex IDs. ROIFlags will be resized to either the max overlay element ID, or the max vertex ID, and indices in the ROI will be set to true