// Bizarre... exemple à revoir ! // Intersection d'un "path" avec lui-même. size(7.9cm,0); // ~~~~~~~~~ DEFINITIONS ~~~~~~~~~ path chemin=(-3,0){dir(45)}..(1,2)..{dir(45)}(0,-1) ..(-1,1)..(0,2)..(1,1){dir(-160)}..(-3,2); pair[] p = intersectionpoints(chemin,chemin); pen[] stylo={red,blue}; // ~~~~~~~~~ CONSTRUCTIONS ~~~~~~~~~ draw((0,1)--(0,0)--(1,0),Arrows); dot(chemin,10bp+green); draw(chemin); for (int k=0; k