[Olena-patches] milena r2533: Add flexibility on arbitrary erosion 2d