Implementation of the theory of critical distances using mesh control