Adaptive and regular sampling of curves