// Et si on inverve ligne-couteau et ligne coupée... size(7.5cm,0); path couteau=(-3,1){dir(45)}..(-1,2)..{dir(10)}(4,0), ligne=(-3,-1){dir(45)}..(0,3)..(1.5,-1)..{dir(80)}(3,2), morceau1=cut(ligne,couteau,1).before, morceau2=cut(ligne,couteau,2).after; // cut(ligne,couteau,n) est de type slice // cut(ligne,couteau,n).before et cut(ligne,couteau,n).after // sont de type path. draw(couteau,dashed+orange); draw(ligne,dashed+gray); draw(morceau1,2bp+green); draw(morceau2,2bp+blue); shipout(bbox(3mm,white));