Improved deviation computation (previous algorithm failed to mesh very small geometries, for instance a sphere with a radius of 0.002)