Hello KBL,
How you are planning to define the allowed distance between the mesh vertices and tie points? Would it be manual user input (or fixed value in the script body) - in which units? Or whether it should be calculated according to the project specifics, for example, median value for mesh vertex to the closest tie point distance?