tweaked the relative scaling of the matching tolerance and the used lattice scale to enable 3D (and greater) matching to not have missing edge cases, I didn't calculate the exact ratios required but scale = tolerance*4.0 appears sufficient for 3D.