ENH: add wordRes::matching() method

- returns indices of matching entries.
This commit is contained in:
Mark Olesen
2018-11-09 21:21:15 +01:00
parent dff2569c7f
commit 91cfe4c271
13 changed files with 114 additions and 18 deletions

View File

@ -518,7 +518,8 @@ int main(int argc, char *argv[])
patchNames[patchi] = surf.patches()[patchi].name();
}
labelList indices = findStrings(baffleSelect, patchNames);
labelList indices(baffleSelect.matching(patchNames));
for (const label patchId : indices)
{
surfBaffleRegions[patchId] = true;