implement curvevertex for issue #25