tesselation as a function of distance