I do not understand how the ```searchBy...``` methods work. How is the variable ```i``` and the mesh element ```ele``` connected? I asking since in ```removeMeshElements()``` the marked elements (more or less the same like ```matchedIDs```) are not copied to the new mesh.