Quick cutting of curves and contours