curve : correctly fill the curve in case of very sharp edge