implemeny curvevertex for issue #25