add a function to pointcurve.py