[NTG-context] troubles with cutafter

Damien Thiriet damien at thiriet.web4me.fr
Tue Oct 27 14:06:29 CET 2020


I went into some troubles with cutafter.
Must have missed something obvious.

path p[];
p1:= origin -- (100,0);
p2:= (50,-50) -- (50,100);
draw p1;
draw p2;
draw (p1 cutafter (p1 intersectionpoint p2)) withcolor red;


Can someone explain me why the whole path p1 
of this MWE is in red? I expected only its 
first half to be in red, and the whole line is.


Damien Thiriet 

More information about the ntg-context mailing list