Saturday, March 22, 2003 Hans Hagen wrote:

>>I would like to know if it is possible in MetaPost (in particular
>>MetaFun) to get all the possible intersection points of the paths,

[snip]

>>Anything like this?

HH> not that i know, but assuming that those path have some distance, i can
HH> imagine dividing a path in parts and determining the intersectionpoints iof
HH> the pieces;

HH> delta := .25 ;

HH> for i=0 step delta upto length(p)-delta :
HH>    if intersection_found(1,subpath(i,i+.1) of p) :
HH>      store point
HH>    fi ;
HH> endfor ;

I'll see if I can make something of this ... (wow, looks like I'm
gonna need to learn MetaPost too ...)

-- 
Giuseppe "Oblomov" Bilotta


_______________________________________________
ntg-context mailing list
[EMAIL PROTECTED]
http://www.ntg.nl/mailman/listinfo/ntg-context

Reply via email to