A General Approach to Toroidal Mesh Decontamination with Local Immunity