INTEGER POINTS CLOSE TO A SMOOTH CURVE