Turning points of a curve